From 22b7d78c1b8bec75442c530be8d45b479c7c1173 Mon Sep 17 00:00:00 2001 From: sebavan Date: Fri, 24 Nov 2023 22:46:41 +0100 Subject: [PATCH] fix webgpu phong shader --- src/assets/webgpu/phong.frag | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/assets/webgpu/phong.frag b/src/assets/webgpu/phong.frag index 105b492..6f33c99 100644 --- a/src/assets/webgpu/phong.frag +++ b/src/assets/webgpu/phong.frag @@ -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.); } \ No newline at end of file