Added stencil setup in UTSAPI;
Changed hair shadow length from screen space to world space;
This commit is contained in:
@@ -117,8 +117,8 @@ DirectLighting UtsShadeSurface(PositionInputs posInput, UtsBSDFData bsdfData, Pr
|
||||
|
||||
if (Max3(lightColor.r, lightColor.g, lightColor.b) > 0.0)
|
||||
{
|
||||
SHADOW_TYPE sharpShadow = smoothstep(0.4, 0.6, shadow);
|
||||
//SHADOW_TYPE sharpShadow = shadow;
|
||||
//SHADOW_TYPE sharpShadow = smoothstep(0.4, 0.6, shadow);
|
||||
SHADOW_TYPE sharpShadow = shadow;
|
||||
#if _RECEIVE_HAIR_SHADOW_ON && ENABLE_UTS_HAIR_SHAOW
|
||||
sharpShadow *= GetHairShadow(posInput, L);
|
||||
#endif
|
||||
@@ -188,8 +188,6 @@ DirectLighting UtsShadeSurface(PositionInputs posInput, UtsBSDFData bsdfData, Pr
|
||||
lighting.specular += rimLightLighting.specular;
|
||||
}
|
||||
#endif
|
||||
|
||||
// lighting.diffuse = sharpShadow;
|
||||
}
|
||||
|
||||
return lighting;
|
||||
|
||||
Reference in New Issue
Block a user