mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix #124847: Cycles OSL UDIM wrong extrapolation with negative UV
Pull Request: https://projects.blender.org/blender/blender/pulls/133507
This commit is contained in:
parent
222d6b54cf
commit
82cc0a3eff
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ color image_texture_lookup(string filename,
|
|||
/* Flip the y coordinate, but preserve UDIM tiles. */
|
||||
float flip_v;
|
||||
if (is_tiled) {
|
||||
float v_i = (int)v;
|
||||
float v_i = floor(v);
|
||||
flip_v = v_i + (1.0 - (v - v_i));
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue