We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0400ef0 commit 4d42713Copy full SHA for 4d42713
assets/shaders/custom_material_2d.wgsl
@@ -2,9 +2,9 @@
2
// we can import items from shader modules in the assets folder with a quoted path
3
#import "shaders/custom_material_import.wgsl"::COLOR_MULTIPLIER
4
5
-@group(1) @binding(0) var<uniform> material_color: vec4<f32>;
6
-@group(1) @binding(1) var base_color_texture: texture_2d<f32>;
7
-@group(1) @binding(2) var base_color_sampler: sampler;
+@group(2) @binding(0) var<uniform> material_color: vec4<f32>;
+@group(2) @binding(1) var base_color_texture: texture_2d<f32>;
+@group(2) @binding(2) var base_color_sampler: sampler;
8
9
@fragment
10
fn fragment(mesh: VertexOutput) -> @location(0) vec4<f32> {
0 commit comments