initial commit
This commit is contained in:
11
assets/shaders/custom_material.wgsl
Normal file
11
assets/shaders/custom_material.wgsl
Normal 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);
|
||||
}
|
||||
2
assets/shaders/custom_material_import.wgsl
Normal file
2
assets/shaders/custom_material_import.wgsl
Normal 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);
|
||||
Reference in New Issue
Block a user