summaryrefslogtreecommitdiff
path: root/client/src
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-01-19 18:39:53 +0100
committermetamuffin <metamuffin@disroot.org>2025-01-19 18:39:53 +0100
commit736c0c34b9e727bf4b25e800f748199d13ff561f (patch)
tree788fe00b48ac0f13ec2c9ddd2c9547477eed330c /client/src
parent314a2e3944aa490938f422106b0f2ad1a61228cd (diff)
downloadweareserver-736c0c34b9e727bf4b25e800f748199d13ff561f.tar
weareserver-736c0c34b9e727bf4b25e800f748199d13ff561f.tar.bz2
weareserver-736c0c34b9e727bf4b25e800f748199d13ff561f.tar.zst
client: remove unnecessary normal normalization
Diffstat (limited to 'client/src')
-rw-r--r--client/src/shader.wgsl2
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);