initial commit

This commit is contained in:
2025-02-26 15:51:59 +01:00
commit 931d0c2bf3
16 changed files with 6091 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
#import bevy_pbr::forward_io::VertexOutput
@group(2) @binding(1) var material_color_texture: texture_2d<f32>;
@group(2) @binding(2) var material_color_sampler: sampler;
@fragment
fn fragment(
mesh: VertexOutput,
) -> @location(0) vec4<f32> {
return textureSample(material_color_texture, material_color_sampler, mesh.uv);
}

View File

@@ -0,0 +1,2 @@
// this is made available to the importing module
const COLOR_MULTIPLIER: vec4<f32> = vec4<f32>(1.0, 1.0, 1.0, 0.5);