Skip to content

Commit

Permalink
Fix binding group in custom_material_2d.wgsl (#10841)
Browse files Browse the repository at this point in the history
# Objective

Fix #10840 

## Solution

The material's binding group number was changed in #10485
  • Loading branch information
Davier authored Dec 2, 2023
1 parent 0400ef0 commit 4d42713
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions assets/shaders/custom_material_2d.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
// we can import items from shader modules in the assets folder with a quoted path
#import "shaders/custom_material_import.wgsl"::COLOR_MULTIPLIER

@group(1) @binding(0) var<uniform> material_color: vec4<f32>;
@group(1) @binding(1) var base_color_texture: texture_2d<f32>;
@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;

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

0 comments on commit 4d42713

Please sign in to comment.