FIX:change condition in goruaud.vs
jira: none Change-Id: I6d1e80320a2d234f875385f8f747f22d42d1112d
This commit is contained in:
parent
8541f5e893
commit
960af84f8f
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue