Revision 175:f9f5640c2a3a Assets/Time of Day/Assets/Shaders/Cloud Billboard Far.shader

b/Assets/Time of Day/Assets/Shaders/Cloud Billboard Far.shader
1
// Upgrade NOTE: replaced '_Object2World' with 'unity_ObjectToWorld'
2

  
1 3
Shader "Time of Day/Cloud Billboard Far"
2 4
{
3 5
	Properties
......
36 38
		o.texcoord.xy = TRANSFORM_TEX(v.texcoord, _MainTex);
37 39
		o.texcoord.zw = TRANSFORM_TEX(v.texcoord, _BumpMap);
38 40

  
39
		o.viewDir = normalize(mul(TOD_World2Sky, mul(_Object2World, v.vertex)).xyz);
41
		o.viewDir = normalize(mul(TOD_World2Sky, mul(unity_ObjectToWorld, v.vertex)).xyz);
40 42
		o.lightDir = TOD_LocalSunDirection;
41 43
		o.lightCol = ScatteringColor(o.viewDir, TOD_CloudScattering);
42 44

  

Also available in: Unified diff