FIX:change condition in goruaud.vs
jira: none Change-Id: I6d1e80320a2d234f875385f8f747f22d42d1112d
This commit is contained in:
parent
8541f5e893
commit
960af84f8f
|
@ -63,7 +63,7 @@ void main()
|
||||||
NdotL = max(dot(eye_normal, LIGHT_FRONT_DIR), 0.0);
|
NdotL = max(dot(eye_normal, LIGHT_FRONT_DIR), 0.0);
|
||||||
intensity.x += NdotL * LIGHT_FRONT_DIFFUSE;
|
intensity.x += NdotL * LIGHT_FRONT_DIFFUSE;
|
||||||
|
|
||||||
if(is_text_shape){
|
if(!is_text_shape){
|
||||||
NdotL = max(dot(eye_normal, LIGHT_BACK_DIR), 0.0);
|
NdotL = max(dot(eye_normal, LIGHT_BACK_DIR), 0.0);
|
||||||
intensity.x += NdotL * LIGHT_BACK_DIFFUSE;
|
intensity.x += NdotL * LIGHT_BACK_DIFFUSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue