mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 23:17:32 -06:00
Renamed lightDir to light_dir. CURA-3273
This commit is contained in:
parent
0d444298bc
commit
811f40d294
1 changed files with 2 additions and 2 deletions
|
@ -212,10 +212,10 @@ fragment41core =
|
|||
finalColor.rgb += f_color.rgb * 0.3;
|
||||
|
||||
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
|
||||
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.a = alpha; // Do not change alpha in any way
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue