This commit is contained in:
not-elm
2025-08-10 21:28:45 +09:00
commit 23bdc65da3
91 changed files with 20122 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
#import bevy_pbr::{
forward_io::VertexOutput,
}
#import webview::util::{
surface_color,
}
@group(2) @binding(0) var mask_texture: texture_2d<f32>;
@group(2) @binding(1) var mask_sampler: sampler;
@fragment
fn fragment(
in: VertexOutput,
) -> @location(0) vec4<f32> {
// You can obtain the surface color.
var color = surface_color(in.uv);
// Blend the color with the mask texture.
color *= (textureSample(mask_texture, mask_sampler, in.uv) * vec4(vec3(1.0), 0.3));
return color;
}