diff options
author | metamuffin <metamuffin@disroot.org> | 2025-01-24 21:18:55 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-01-24 21:18:55 +0100 |
commit | 006ad7ce6d30d764411dcf8c2527f2c80e722491 (patch) | |
tree | 957b60eec535ddcea4f842919a99f806b6d55217 /client/src/shaders/vertex_world.wgsl | |
parent | b4aaaae52b3b746a5e1ef8a98151c627f2787e38 (diff) | |
download | weareserver-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.wgsl | 8 |
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; } |