Skip to content

Commit 4d42713

Browse files
authored
Fix binding group in custom_material_2d.wgsl (#10841)
# Objective Fix #10840 ## Solution The material's binding group number was changed in #10485
1 parent 0400ef0 commit 4d42713

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

assets/shaders/custom_material_2d.wgsl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
// we can import items from shader modules in the assets folder with a quoted path
33
#import "shaders/custom_material_import.wgsl"::COLOR_MULTIPLIER
44

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;
5+
@group(2) @binding(0) var<uniform> material_color: vec4<f32>;
6+
@group(2) @binding(1) var base_color_texture: texture_2d<f32>;
7+
@group(2) @binding(2) var base_color_sampler: sampler;
88

99
@fragment
1010
fn fragment(mesh: VertexOutput) -> @location(0) vec4<f32> {

0 commit comments

Comments
 (0)