summaryrefslogtreecommitdiff
path: root/client/src/shaders/vertex_world_skin.wgsl
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/shaders/vertex_world_skin.wgsl')
-rw-r--r--client/src/shaders/vertex_world_skin.wgsl4
1 files changed, 3 insertions, 1 deletions
diff --git a/client/src/shaders/vertex_world_skin.wgsl b/client/src/shaders/vertex_world_skin.wgsl
index 288950d..4b45a6f 100644
--- a/client/src/shaders/vertex_world_skin.wgsl
+++ b/client/src/shaders/vertex_world_skin.wgsl
@@ -25,7 +25,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 {
@@ -43,6 +44,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;