update toon shader for v3.3.2 (#9354)

This commit is contained in:
troublemaker52025
2021-09-22 14:26:33 +08:00
committed by GitHub
parent 93f5fa9c2e
commit 731fd344f1
+1 -1
View File
@@ -87,7 +87,7 @@ struct ToonSurface {
vec3 dirlightContrib = diffuse + specular;
float shadow = 1.0;
#if CC_RECEIVE_SHADOW
#if CC_RECEIVE_SHADOW && CC_ENABLE_DIR_SHADOW
NL = max(dot(N, L), 0.0);
if (NL > 0.0) {
CC_SHADOW_FACTOR(shadow, N, NL);