diff options
Diffstat (limited to 'client/src/shader.wgsl')
-rw-r--r-- | client/src/shader.wgsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/shader.wgsl b/client/src/shader.wgsl index e8d3276..d037a94 100644 --- a/client/src/shader.wgsl +++ b/client/src/shader.wgsl @@ -57,7 +57,7 @@ fn fs_main(vo: VertexOut) -> @location(0) vec4<f32> { let t_normal = textureSample(tex_normal, tex_normal_sampler, vo.texcoord); let tangent_basis = mat3x3(vo.tangent, cross(vo.tangent, vo.normal), vo.normal); - let normal = tangent_basis * normalize(t_normal.rgb * 2. - 1.); + let normal = tangent_basis * (t_normal.rgb * 2. - 1.); let lighting = mix(1., saturate(dot(LIGHT, normal)), 0.9); |