diff --git a/crates/fj-viewer/src/graphics/shader.wgsl b/crates/fj-viewer/src/graphics/shader.wgsl index 0dc10d89e..bb0011c5c 100644 --- a/crates/fj-viewer/src/graphics/shader.wgsl +++ b/crates/fj-viewer/src/graphics/shader.wgsl @@ -1,3 +1,11 @@ +struct Uniforms { + transform: mat4x4, + transform_normals: mat4x4, +}; + +@group(0) @binding(0) +var uniforms: Uniforms; + struct VertexInput { @location(0) position: vec3, @location(1) normal: vec3, @@ -10,14 +18,6 @@ struct VertexOutput { @location(1) color: vec4, }; -struct Uniforms { - transform: mat4x4, - transform_normals: mat4x4, -}; - -@group(0) @binding(0) -var uniforms: Uniforms; - @vertex fn vertex(in: VertexInput) -> VertexOutput { var out: VertexOutput;