Skip to content

Commit ef89495

Browse files
authored
handle uv flip with tiling (playcanvas#3343)
1 parent 77f438e commit ef89495

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scene/materials/standard-material.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ class StandardMaterial extends Material {
408408
}
409409

410410
transform = transform || new Vec4();
411-
transform.set(tiling.x, tiling.y, offset.x, offset.y);
411+
transform.set(tiling.x, tiling.y, offset.x, 1.0 - tiling.y - offset.y);
412412
return transform;
413413
}
414414

0 commit comments

Comments
 (0)