콘텐츠로 건너뛰기

Shadow Stylized Color

The color of the shadows is very important in the whole scene of the game.
Artists have direct control over the color of shadows throughout the scene, or the color and intensity of shadows on characters.

//Added at the bottom of the UniversalFragmentPBR function.
half NL = dot(normalize(inputData.normalWS), normalize(mainLight.direction));
half nolmask =saturate(NL);
half addShadowAtten = 1 - smoothstep(_NoLMinBrightShadow, _NoLMaxBrightShadow, nolmask);
mainLight.shadowAttenuation = saturate(addShadowAtten + mainLight.shadowAttenuation);
color = lerp(color, color * _SubtractiveShadowColor.rgb  * _BrightShadow, (1.0 - mainLight.shadowAttenuation) );
Code language: JavaScript (javascript)
태그:

댓글 남기기

MY NAME IS JP에서 더 알아보기

지금 구독하여 계속 읽고 전체 아카이브에 액세스하세요.

Continue reading