Files
HEDZReloaded/assets/shaders/custom_material.wgsl
2025-02-26 15:51:59 +01:00

12 lines
333 B
WebGPU Shading Language

#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);
}