Revision 175:f9f5640c2a3a Assets/Standard Assets/Water (Pro Only)/Water4/Sources/Shaders/WaterInclude.cginc
b/Assets/Standard Assets/Water (Pro Only)/Water4/Sources/Shaders/WaterInclude.cginc | ||
---|---|---|
1 |
// Upgrade NOTE: replaced '_Object2World' with 'unity_ObjectToWorld' |
|
2 |
|
|
1 | 3 |
// Upgrade NOTE: unity_Scale shader variable was removed; replaced 'unity_Scale.w' with '1.0' |
2 | 4 |
|
3 | 5 |
|
... | ... | |
128 | 130 |
inline half2 GetTileableUv(half4 vertex) |
129 | 131 |
{ |
130 | 132 |
// @NOTE: use worldSpaceVertex.xz instead of ws to make it rotation independent |
131 |
half2 ws = half2(_Object2World[0][3],_Object2World[2][3]);
|
|
133 |
half2 ws = half2(unity_ObjectToWorld[0][3],unity_ObjectToWorld[2][3]);
|
|
132 | 134 |
half2 tileableUv = (ws + vertex.xz/1.0); |
133 | 135 |
return tileableUv; |
134 | 136 |
} |
Also available in: Unified diff