Revision 175:f9f5640c2a3a Assets/Standard Assets/Environment/Water/Water/Shaders/FXWaterPro.shader
b/Assets/Standard Assets/Environment/Water/Water/Shaders/FXWaterPro.shader | ||
---|---|---|
1 |
// Upgrade NOTE: replaced '_Object2World' with 'unity_ObjectToWorld' |
|
2 |
|
|
1 | 3 |
Shader "FX/Water" { |
2 | 4 |
Properties { |
3 | 5 |
_WaveScale ("Wave scale", Range (0.02,0.15)) = 0.063 |
... | ... | |
75 | 77 |
|
76 | 78 |
// scroll bump waves |
77 | 79 |
float4 temp; |
78 |
float4 wpos = mul (_Object2World, v.vertex);
|
|
80 |
float4 wpos = mul (unity_ObjectToWorld, v.vertex);
|
|
79 | 81 |
temp.xyzw = wpos.xzxz * _WaveScale4 + _WaveOffset; |
80 | 82 |
o.bumpuv0 = temp.xy; |
81 | 83 |
o.bumpuv1 = temp.wz; |
Also available in: Unified diff