Added dots instancing support;
Fixed the problem that shader can compile when using emission color map;
This commit is contained in:
@@ -118,7 +118,8 @@ DirectLighting UtsShadeSurface(PositionInputs posInput, UtsBSDFData bsdfData, Pr
|
||||
|
||||
if (Max3(lightColor.r, lightColor.g, lightColor.b) > 0.0)
|
||||
{
|
||||
SHADOW_TYPE sharpShadow = smoothstep(0.0, 1.0, shadow);
|
||||
// SHADOW_TYPE sharpShadow = smoothstep(0.0, 1.0, shadow);
|
||||
SHADOW_TYPE sharpShadow = shadow;
|
||||
#if _RECEIVE_HAIR_SHADOW_ON && ENABLE_UTS_HAIR_SHAOW
|
||||
sharpShadow *= GetHairShadow(posInput, L, bsdfData.normalWS);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user