|
|
|
|
|
|
#ifdef _MATERIAL_FEATURE_CLEAR_COAT |
|
|
|
surfaceData.coatMask = _CoatMask; |
|
|
|
// To shader feature for keyword to limit the variant |
|
|
|
surfaceData.coatMask *= SAMPLE_UVMAPPING_TEXTURE2D(ADD_IDX(_coatMaskMap), ADD_ZERO_IDX(sampler_coatMaskMap), ADD_IDX(layerTexCoord.base)).r; |
|
|
|
surfaceData.coatMask *= SAMPLE_UVMAPPING_TEXTURE2D(ADD_IDX(_CoatMaskMap), ADD_ZERO_IDX(sampler_CoatMaskMap), ADD_IDX(layerTexCoord.base)).r; |
|
|
|
#else |
|
|
|
surfaceData.coatMask = 0.0; |
|
|
|
#endif |
|
|
|