Skip to content

Commit

Permalink
fix webgpu phong shader
Browse files Browse the repository at this point in the history
  • Loading branch information
sebavan committed Nov 24, 2023
1 parent f93cfc0 commit 22b7d78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/assets/webgpu/phong.frag
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ fn main(input : FragmentInputs) -> FragmentOutputs {
let specComp = max(0., dot(vNormalW, angleW));
let specComp2 = pow(specComp, max(1., 64.)) * 2.;

fragmentOutputs.color = vec4(color * ndl + vec3(specComp), 1.);
fragmentOutputs.color = vec4(color * ndl + vec3(specComp2), 1.);
}

0 comments on commit 22b7d78

Please sign in to comment.