FIX:change condition in goruaud.vs

jira: none
Change-Id: I6d1e80320a2d234f875385f8f747f22d42d1112d
This commit is contained in:
zhou.xu 2024-11-15 11:17:20 +08:00 committed by lane.wei
parent 8541f5e893
commit 960af84f8f
1 changed files with 2 additions and 2 deletions

View File

@ -62,8 +62,8 @@ void main()
// Perform the same lighting calculation for the 2nd light source (no specular applied).
NdotL = max(dot(eye_normal, LIGHT_FRONT_DIR), 0.0);
intensity.x += NdotL * LIGHT_FRONT_DIFFUSE;
if(is_text_shape){
if(!is_text_shape){
NdotL = max(dot(eye_normal, LIGHT_BACK_DIR), 0.0);
intensity.x += NdotL * LIGHT_BACK_DIFFUSE;
}