mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 08:02:39 +08:00
update toon shader for v3.3.2 (#9354)
This commit is contained in:
committed by
GitHub
parent
93f5fa9c2e
commit
731fd344f1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user