modify invert method.

This commit is contained in:
hecomi
2016-10-30 18:41:43 +09:00
parent 4317fc06e3
commit 23ceef6502
@@ -6,10 +6,10 @@
inline void uddInvertUV(inout float2 uv) inline void uddInvertUV(inout float2 uv)
{ {
#ifdef INVERT_X #ifdef INVERT_X
uv.x *= -1.0; uv.x = 1.0 - uv.x;
#endif #endif
#ifdef INVERT_Y #ifdef INVERT_Y
uv.y *= -1.0; uv.y = 1.0 - uv.y;
#endif #endif
} }