mirror of
https://github.com/raysan5/raylib.git
synced 2026-02-05 05:39:18 -05:00
reviewed ALL non-external files to follow raylib's convention of no spaces around / or * (#5153)
This commit is contained in:
@ -46,7 +46,7 @@ void main()
|
||||
light = normalize(lights[i].position - fragPosition);
|
||||
|
||||
float NdotL = max(dot(normal, light), 0.0);
|
||||
lightDot += lights[i].color.rgb * NdotL;
|
||||
lightDot += lights[i].color.rgb*NdotL;
|
||||
|
||||
if (NdotL > 0.0)
|
||||
{
|
||||
@ -56,8 +56,8 @@ void main()
|
||||
}
|
||||
}
|
||||
|
||||
vec4 finalColor = (fragColor * ((colDiffuse + vec4(specular, 1.0)) * vec4(lightDot, 1.0)));
|
||||
finalColor += fragColor * (ambient / 10.0) * colDiffuse;
|
||||
vec4 finalColor = (fragColor*((colDiffuse + vec4(specular, 1.0))*vec4(lightDot, 1.0)));
|
||||
finalColor += fragColor*(ambient/10.0)*colDiffuse;
|
||||
|
||||
finalColor = pow(finalColor, vec4(1.0/2.2)); // gamma correction
|
||||
|
||||
|
||||
Reference in New Issue
Block a user