|
|
|
|
|
|
half4 specGloss = MetallicSpecGloss(uv, albedoAlpha); |
|
|
|
outSurfaceData.albedo = LIGHTWEIGHT_GAMMA_TO_LINEAR(albedoAlpha.rgb) * _Color.rgb; |
|
|
|
|
|
|
|
#if _METALLIC_SETUP |
|
|
|
outSurfaceData.metallic = specGloss.r; |
|
|
|
outSurfaceData.specular = half3(0.0h, 0.0h, 0.0h); |
|
|
|
#else |
|
|
|
#if _SPECULAR_SETUP |
|
|
|
#else |
|
|
|
outSurfaceData.metallic = specGloss.r; |
|
|
|
outSurfaceData.specular = half3(0.0h, 0.0h, 0.0h); |
|
|
|
#endif |
|
|
|
|
|
|
|
outSurfaceData.smoothness = specGloss.a; |
|
|
|