summaryrefslogtreecommitdiff
path: root/common/shaders/common_uniforms.wgsl
diff options
context:
space:
mode:
Diffstat (limited to 'common/shaders/common_uniforms.wgsl')
-rw-r--r--common/shaders/common_uniforms.wgsl20
1 files changed, 10 insertions, 10 deletions
diff --git a/common/shaders/common_uniforms.wgsl b/common/shaders/common_uniforms.wgsl
index 1ab8939..5dc0251 100644
--- a/common/shaders/common_uniforms.wgsl
+++ b/common/shaders/common_uniforms.wgsl
@@ -1,5 +1,5 @@
struct CommonUniforms {
- resolution: vec2<f32>, // Screen dimensions
+ resolution: vec2f, // Screen dimensions
aspect_ratio: f32, // Width/height ratio
time: f32, // Physical time in seconds (unaffected by tempo)
beat_time: f32, // Musical time in beats (absolute, tempo-scaled)
@@ -8,17 +8,17 @@ struct CommonUniforms {
_pad: f32, // Padding
};
struct GlobalUniforms {
- view_proj: mat4x4<f32>,
- inv_view_proj: mat4x4<f32>,
- camera_pos_time: vec4<f32>,
- params: vec4<f32>,
- resolution: vec2<f32>,
+ view_proj: mat4x4f,
+ inv_view_proj: mat4x4f,
+ camera_pos_time: vec4f,
+ params: vec4f,
+ resolution: vec2f,
};
struct ObjectData {
- model: mat4x4<f32>,
- inv_model: mat4x4<f32>,
- color: vec4<f32>,
- params: vec4<f32>,
+ model: mat4x4f,
+ inv_model: mat4x4f,
+ color: vec4f,
+ params: vec4f,
};
struct ObjectsBuffer {
objects: array<ObjectData>,