diff options
Diffstat (limited to 'assets/final/shaders/common_uniforms.wgsl')
| -rw-r--r-- | assets/final/shaders/common_uniforms.wgsl | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/assets/final/shaders/common_uniforms.wgsl b/assets/final/shaders/common_uniforms.wgsl new file mode 100644 index 0000000..3c9e34b --- /dev/null +++ b/assets/final/shaders/common_uniforms.wgsl @@ -0,0 +1,14 @@ +struct GlobalUniforms { + view_proj: mat4x4<f32>, + camera_pos_time: vec4<f32>, + params: vec4<f32>, +}; +struct ObjectData { + model: mat4x4<f32>, + inv_model: mat4x4<f32>, + color: vec4<f32>, + params: vec4<f32>, +}; +struct ObjectsBuffer { + objects: array<ObjectData>, +}; |
