mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-11 05:39:01 +08:00
Renamed lightDir to light_dir. CURA-3273
This commit is contained in:
parent
0d444298bc
commit
811f40d294
@ -212,10 +212,10 @@ fragment41core =
|
|||||||
finalColor.rgb += f_color.rgb * 0.3;
|
finalColor.rgb += f_color.rgb * 0.3;
|
||||||
|
|
||||||
highp vec3 normal = normalize(f_normal);
|
highp vec3 normal = normalize(f_normal);
|
||||||
highp vec3 lightDir = normalize(u_lightPosition - f_vertex);
|
highp vec3 light_dir = normalize(u_lightPosition - f_vertex);
|
||||||
|
|
||||||
// Diffuse Component
|
// Diffuse Component
|
||||||
highp float NdotL = clamp(dot(normal, lightDir), 0.0, 1.0);
|
highp float NdotL = clamp(dot(normal, light_dir), 0.0, 1.0);
|
||||||
finalColor += (NdotL * f_color);
|
finalColor += (NdotL * f_color);
|
||||||
finalColor.a = alpha; // Do not change alpha in any way
|
finalColor.a = alpha; // Do not change alpha in any way
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user