mirror of
https://github.com/bevyengine/bevy
synced 2024-11-13 00:17:27 +00:00
Fix binding group in custom_material_2d.wgsl (#10841)
# Objective Fix #10840 ## Solution The material's binding group number was changed in #10485
This commit is contained in:
parent
0400ef059b
commit
4d42713e77
1 changed files with 3 additions and 3 deletions
|
@ -2,9 +2,9 @@
|
||||||
// we can import items from shader modules in the assets folder with a quoted path
|
// we can import items from shader modules in the assets folder with a quoted path
|
||||||
#import "shaders/custom_material_import.wgsl"::COLOR_MULTIPLIER
|
#import "shaders/custom_material_import.wgsl"::COLOR_MULTIPLIER
|
||||||
|
|
||||||
@group(1) @binding(0) var<uniform> material_color: vec4<f32>;
|
@group(2) @binding(0) var<uniform> material_color: vec4<f32>;
|
||||||
@group(1) @binding(1) var base_color_texture: texture_2d<f32>;
|
@group(2) @binding(1) var base_color_texture: texture_2d<f32>;
|
||||||
@group(1) @binding(2) var base_color_sampler: sampler;
|
@group(2) @binding(2) var base_color_sampler: sampler;
|
||||||
|
|
||||||
@fragment
|
@fragment
|
||||||
fn fragment(mesh: VertexOutput) -> @location(0) vec4<f32> {
|
fn fragment(mesh: VertexOutput) -> @location(0) vec4<f32> {
|
||||||
|
|
Loading…
Reference in a new issue