Fix geometry depth binding not updating after resize, refactoring
This commit is contained in:
parent
7b752703ea
commit
3676f8fef5
6 changed files with 210 additions and 219 deletions
|
@ -15,7 +15,7 @@ struct Light {
|
|||
color: vec4<f32>,
|
||||
matrices: array<mat4x4<f32>, 6>,
|
||||
}
|
||||
@group(1) @binding(0)
|
||||
@group(0) @binding(1)
|
||||
var<uniform> light: Light;
|
||||
|
||||
struct GlobalUniforms {
|
||||
|
@ -24,7 +24,7 @@ struct GlobalUniforms {
|
|||
use_shadowmaps: u32,
|
||||
_padding: u32,
|
||||
}
|
||||
@group(1) @binding(1)
|
||||
@group(0) @binding(2)
|
||||
var<uniform> global_uniforms: GlobalUniforms;
|
||||
|
||||
struct VertexInput {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue