4 @location(0) pos: vec3<f32>,
5 @location(1) tex_coords: vec2<f32>,
9 @builtin(position) pos: vec4<f32>,
10 @location(0) tex_coords: vec2<f32>,
13 @group(1) @binding(0) var<uniform> view_proj: mat4x4<f32>;
14 @group(2) @binding(0) var<uniform> model: mat4x4<f32>;
20 var out: VertexOutput;
21 out.pos = view_proj * model * vec4<f32>(in.pos, 1.0);
22 out.tex_coords = in.tex_coords;
28 @group(0) @binding(0) var atlas_texture: texture_2d<f32>;
29 @group(0) @binding(1) var atlas_sampler: sampler;
32 fn fs_main(in: VertexOutput) -> @location(0) vec4<f32> {
33 return textureSample(atlas_texture, atlas_sampler, in.tex_coords);