diff options
| author | Micha White <botahamec@outlook.com> | 2022-09-25 22:55:35 -0400 |
|---|---|---|
| committer | Micha White <botahamec@outlook.com> | 2022-09-25 22:55:35 -0400 |
| commit | def2ebb3df0e4aee106e8ec242c994c7bcdd429f (patch) | |
| tree | 04966cf1184bf76b6494c9edb8f43792a8e29a02 /shaders/sprite.wgsl | |
| parent | c29555bddac1c0027bf6e15d91e219adaa088065 (diff) | |
Code simplification + fixed bug
Diffstat (limited to 'shaders/sprite.wgsl')
| -rw-r--r-- | shaders/sprite.wgsl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/shaders/sprite.wgsl b/shaders/sprite.wgsl index 2358f43..f8b9e7e 100644 --- a/shaders/sprite.wgsl +++ b/shaders/sprite.wgsl @@ -34,10 +34,10 @@ fn vs_main(model: VertexInput, instance: InstanceInput) -> VertexOutput { let position2d = scaled + instance.position; // camera stuff - let position4d = vec4<f32>(position2d, f32(instance.z_layer), 1.0); - out.clip_position = camera * position4d; - //out.clip_position = position4d; + let position4d = vec4<f32>(position2d, 0.0, 1.0); + let position = camera * position4d; + out.clip_position = position; return out; } |
