summaryrefslogtreecommitdiff
path: root/client/src/shaders/vertex_world.wgsl
diff options
context:
space:
mode:
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;
}