Skip to content

Commit

Permalink
Fix shininess parameter ignored when data defined colors
Browse files Browse the repository at this point in the history
are activated for phong shader
  • Loading branch information
nyalldawson authored and wonder-sk committed Dec 21, 2023
1 parent 56ec321 commit 2d56e1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/3d/shaders/phongDataDefined.frag
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ out vec4 fragColor;
void main(void)
{
vec3 worldView = normalize(eyePosition - worldPosition);
fragColor = phongFunction(vs_in.ambient,vs_in.diffuse,vs_in.specular, 1.0, worldPosition, worldView, worldNormal);
fragColor = phongFunction(vs_in.ambient,vs_in.diffuse,vs_in.specular, shininess, worldPosition, worldView, worldNormal);
}

0 comments on commit 2d56e1f

Please sign in to comment.