1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| float3 diffuseColor1 = (_ColorR.rgb * texColor.r * _ColorR.a + _ColorG.rgb * texColor.g * _ColorG.a + _ColorB.rgb * texColor.b * _ColorB.a) * _Color.rgb * float(8);
float2 newuv= float2(i.uv0.x-1, i.uv0.y); float4 newColor = tex2D(_MainTex,TRANSFORM_TEX(newuv, _MainTex)); float3 diffuseColor2 = (newColor.rgb * _Color.rgb);
float uvlow = step(i.uv0.x, 1); float uvhigh = 1 - uvlow; float3 diffuseColor = diffuseColor1 * uvlow + diffuseColor2 * uvhigh; float alpha = (_ColorR.a + _ColorG.a + _ColorB.a) * 0.7 + uvhigh * 0.3;
|