summaryrefslogtreecommitdiff
path: root/client/src/shaders/vertex_world.wgsl
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-01-24 21:18:55 +0100
committermetamuffin <metamuffin@disroot.org>2025-01-24 21:18:55 +0100
commit006ad7ce6d30d764411dcf8c2527f2c80e722491 (patch)
tree957b60eec535ddcea4f842919a99f806b6d55217 /client/src/shaders/vertex_world.wgsl
parentb4aaaae52b3b746a5e1ef8a98151c627f2787e38 (diff)
downloadweareserver-006ad7ce6d30d764411dcf8c2527f2c80e722491.tar
weareserver-006ad7ce6d30d764411dcf8c2527f2c80e722491.tar.bz2
weareserver-006ad7ce6d30d764411dcf8c2527f2c80e722491.tar.zst
minimal progress but diffuse lighting works again
Diffstat (limited to 'client/src/shaders/vertex_world.wgsl')
-rw-r--r--client/src/shaders/vertex_world.wgsl8
1 files changed, 4 insertions, 4 deletions
diff --git a/client/src/shaders/vertex_world.wgsl b/client/src/shaders/vertex_world.wgsl
index e185289..4f342fd 100644
--- a/client/src/shaders/vertex_world.wgsl
+++ b/client/src/shaders/vertex_world.wgsl
@@ -29,7 +29,7 @@ struct VertexOut {
struct PushConst {
modelviewproject: mat4x4<f32>,
- modelview: mat4x4<f32>,
+ model: mat4x4<f32>,
}
var<push_constant> pc: PushConst;
@@ -39,10 +39,10 @@ fn main(vi: VertexIn) -> VertexOut {
let clip = pc.modelviewproject * vec4(vi.position, 1.);
let vo = VertexOut(
clip,
- normalize((pc.modelview * vec4(vi.normal, 0.)).xyz),
- normalize((pc.modelview * vec4(vi.tangent, 0.)).xyz),
+ normalize((pc.model * vec4(vi.normal, 0.)).xyz),
+ normalize((pc.model * vec4(vi.tangent, 0.)).xyz),
vi.texcoord,
- (pc.modelview * vec4(vi.position, 1.)).xyz,
+ (pc.model * vec4(vi.position, 1.)).xyz,
);
return vo;
}