bevy/crates/bevy_pbr/src/prepass/prepass_bindings.wgsl
JMS55 e610badf6c
Add more PreviousViewData (#19605)
Add some more matrices to PreviousViewData for future use with
bevy_solari.
2025-06-16 04:54:26 +00:00

14 lines
373 B
WebGPU Shading Language

#define_import_path bevy_pbr::prepass_bindings
struct PreviousViewUniforms {
view_from_world: mat4x4<f32>,
clip_from_world: mat4x4<f32>,
clip_from_view: mat4x4<f32>,
world_from_clip: mat4x4<f32>,
view_from_clip: mat4x4<f32>,
}
@group(0) @binding(2) var<uniform> previous_view_uniforms: PreviousViewUniforms;
// Material bindings will be in @group(2)