From 960af84f8ff169d5d26d88c2b61c61b0e4a56748 Mon Sep 17 00:00:00 2001 From: "zhou.xu" Date: Fri, 15 Nov 2024 11:17:20 +0800 Subject: [PATCH] FIX:change condition in goruaud.vs jira: none Change-Id: I6d1e80320a2d234f875385f8f747f22d42d1112d --- resources/shaders/gouraud.vs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/shaders/gouraud.vs b/resources/shaders/gouraud.vs index dd70e61c9..2e65586fa 100644 --- a/resources/shaders/gouraud.vs +++ b/resources/shaders/gouraud.vs @@ -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; }