13 lines
245 B
WebGPU Shading Language
13 lines
245 B
WebGPU Shading Language
#import bevy_pbr::forward_io::VertexOutput
|
|
|
|
struct PushConstants {
|
|
color: vec4<f32>
|
|
}
|
|
|
|
var<push_constant> push_constants: PushConstants;
|
|
|
|
@fragment
|
|
fn fragment(in: VertexOutput) -> @location(0) vec4<f32> {
|
|
return push_constants.color;
|
|
}
|