pull/192/head
Ben Hansen 3 years ago
parent d45b0982f4
commit 53a019b902

@ -314,7 +314,6 @@ With that in place we need to write the actual shaders.
[[block]]
struct Uniforms {
view_pos: vec4<f32>;
view_proj: mat4x4<f32>;
};
[[group(0), binding(0)]]
@ -787,6 +786,12 @@ struct Uniforms {
var<uniform> uniforms: Uniforms;
```
<div class="note">
Don't forget to update the `Uniforms` struct in `light.wgsl` as well, as if it doesn't match the `Uniforms` struct in rust, the light will render wrong.
</div>
We're going to need to update the `Uniforms` struct as well.
```rust

Loading…
Cancel
Save