summaryrefslogtreecommitdiff
path: root/client/src/shaders/vertex_world.wgsl
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-01-24 16:01:11 +0100
committermetamuffin <metamuffin@disroot.org>2025-01-24 16:01:11 +0100
commitce82f40bc4bd03963390d2c95ec688fccc4740b0 (patch)
treef00f4b1a525d70ebe7e5df38206c5b410ccee03d /client/src/shaders/vertex_world.wgsl
parent3344eb2d678f9c5973c8e38083760254b54c20fc (diff)
downloadweareserver-ce82f40bc4bd03963390d2c95ec688fccc4740b0.tar
weareserver-ce82f40bc4bd03963390d2c95ec688fccc4740b0.tar.bz2
weareserver-ce82f40bc4bd03963390d2c95ec688fccc4740b0.tar.zst
break things
Diffstat (limited to 'client/src/shaders/vertex_world.wgsl')
-rw-r--r--client/src/shaders/vertex_world.wgsl4
1 files changed, 3 insertions, 1 deletions
diff --git a/client/src/shaders/vertex_world.wgsl b/client/src/shaders/vertex_world.wgsl
index 5d69acd..d7bf445 100644
--- a/client/src/shaders/vertex_world.wgsl
+++ b/client/src/shaders/vertex_world.wgsl
@@ -23,7 +23,8 @@ struct VertexOut {
@builtin(position) clip: vec4<f32>,
@location(0) normal: vec3<f32>,
@location(1) tangent: vec3<f32>,
- @location(2) texcoord: vec2<f32>,
+ @location(2) world: vec3<f32>,
+ @location(3) texcoord: vec2<f32>,
}
struct PushConst {
@@ -40,6 +41,7 @@ fn main(vi: VertexIn) -> VertexOut {
clip,
normalize(pc.model_basis * vi.normal),
normalize(pc.model_basis * vi.tangent),
+ vi.position
vi.texcoord
);
return vo;