fn vertex() { let model_matrix = mat4x4( instance.col1, instance.col2, instance.col3, instance.translation, ); let world_position = vec4(vertex.pos, 1.0); var out: VertexOutput; out.clip_position = camera.view_proj * model_matrix * world_position; out.color = vec4(9.0,0.0,1.0,1.0); return out; } fn fragment() { // return in.color; let d = in.position; return vec4(d,1.0,1.0,1.0); }