|
|
|
|
|
|
|
|
|
|
TEXTURE2D(_SpecGlossMap); SAMPLER(sampler_SpecGlossMap); |
|
|
|
|
|
|
|
half4 SampleSpecularGloss(half2 uv, half alpha) |
|
|
|
half4 SampleSpecularGloss(half2 uv, half alpha, half4 specColor, TEXTURE2D_ARGS(specGlossMap, sampler_specGlossMap)) |
|
|
|
half4 specularGloss = half4(0, 0, 0, 1); |
|
|
|
half4 specularGloss = half4(0.0h, 0.0h, 0.0h, 1.0h); |
|
|
|
specularGloss = SAMPLE_TEXTURE2D(_SpecGlossMap, sampler_SpecGlossMap, uv); |
|
|
|
specularGloss = SAMPLE_TEXTURE2D(TEXTURE2D_PARAM(specGlossMap, sampler_specGlossMap), uv); |
|
|
|
specularGloss = _SpecColor; |
|
|
|
specularGloss = specColor; |
|
|
|
#endif |
|
|
|
|
|
|
|
#ifdef _GLOSSINESS_FROM_BASE_ALPHA |
|
|
|