Added dots instancing support;

Fixed the problem that shader can compile when using emission color map;
This commit is contained in:
2025-09-01 01:15:57 +09:00
parent e35650f052
commit bcba75a7d6
6 changed files with 18 additions and 8 deletions

View File

@@ -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