mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-08-15 00:55:58 +08:00
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).
|
// Perform the same lighting calculation for the 2nd light source (no specular applied).
|
||||||
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…
x
Reference in New Issue
Block a user