|
|
|
|
|
|
half4 fragParticleUnlit(VertexOutputLit IN) : SV_Target |
|
|
|
{ |
|
|
|
half4 albedo = SampleAlbedo(IN, TEXTURE2D_PARAM(_MainTex, sampler_MainTex)); |
|
|
|
half3 diffuse = AlphaModulate(albedo.rgb, albedo.a); |
|
|
|
half3 diffuse = AlphaModulate(albedo.rgb, alpha); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
half fogFactor = IN.posWS.w; |
|
|
|
ApplyFogColor(result, half3(0, 0, 0), fogFactor); |
|
|
|
return half4(result, alpha); |
|
|
|