|
|
|
|
|
|
|
|
|
|
OUTPUT_NORMAL(v, o); |
|
|
|
|
|
|
|
o.color = v.color * _Color; |
|
|
|
o.color = v.color; |
|
|
|
|
|
|
|
// TODO: Instancing |
|
|
|
// vertColor(o.color); |
|
|
|
vertTexcoord(v, o); |
|
|
|
vertFading(o, o.posWS, o.clipPos); |
|
|
|
return o; |
|
|
|
|
|
|
{ |
|
|
|
half4 albedo = SampleAlbedo(IN, TEXTURE2D_PARAM(_MainTex, sampler_MainTex)); |
|
|
|
half3 diffuse = AlphaModulate(albedo.rgb, albedo.a); |
|
|
|
half3 diffuse = AlphaModulate(albedo.rgb, alpha); |
|
|
|
half3 normalTS = SampleNormalTS(IN, TEXTURE2D_PARAM(_BumpMap, sampler_BumpMap)); |
|
|
|
half3 emission = SampleEmission(IN, _EmissionColor.rgb, TEXTURE2D_PARAM(_EmissionMap, sampler_EmissionMap)); |
|
|
|
half4 specularGloss = SampleSpecularGloss(IN, albedo.a, _SpecColor, TEXTURE2D_PARAM(_SpecGlossMap, sampler_SpecGlossMap)); |
|
|
|