mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 15:14:50 +00:00
9a89295a17
# Objective Fixes #3352 Fixes #3208 ## Solution - Update wgpu to 0.12 - Update naga to 0.8 - Resolve compilation errors - Remove [[block]] from WGSL shaders (because it is depracated and now wgpu cant parse it) - Replace `elseif` with `else if` in pbr.wgsl
10 lines
208 B
WebGPU Shading Language
10 lines
208 B
WebGPU Shading Language
struct CustomMaterial {
|
|
color: vec4<f32>;
|
|
};
|
|
[[group(1), binding(0)]]
|
|
var<uniform> material: CustomMaterial;
|
|
|
|
[[stage(fragment)]]
|
|
fn fragment() -> [[location(0)]] vec4<f32> {
|
|
return material.color;
|
|
}
|