Merge pull request #12828 from NathanWarden/pixel_stretch_fix
Fixed a bug where clamp_uv was clamping one pixel short, stretching the last pixels.
This commit is contained in:
commit
46bbe3a541
1 changed files with 1 additions and 1 deletions
|
@ -382,7 +382,7 @@ void main() {
|
|||
if (clip_rect_uv) {
|
||||
|
||||
vec2 half_texpixel = color_texpixel_size * 0.5;
|
||||
uv = clamp(uv,src_rect.xy+half_texpixel,src_rect.xy+abs(src_rect.zw)-color_texpixel_size);
|
||||
uv = clamp(uv,src_rect.xy,src_rect.xy+abs(src_rect.zw));
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue