1#import bevy_pbr::mesh_view_types 2#import bevy_pbr::mesh_types 5var<uniform> view: View; 8var<uniform> mesh: Mesh; 12var<uniform> joint_matrices: SkinnedMesh; 13#import bevy_pbr::skinning 17#import bevy_pbr::mesh_functions 20 @location(0) position: vec3<f32>, 22 @location(4) joint_indices: vec4<u32>, 23 @location(5) joint_weights: vec4<f32>, 28 @builtin(position) clip_position: vec4<f32>, 32fn vertex(vertex: Vertex) -> VertexOutput { 34 let model = skin_model(vertex.joint_indices, vertex.joint_weights); 36 let model = mesh.model; 39 var out: VertexOutput; 40 out.clip_position = mesh_position_local_to_clip(model, vec4<f32>(vertex.position, 1.0));