1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
struct _shade_Input {
@builtin(position) __luma_frag_coord: vec4<f32>,
@builtin(front_facing) __luma_frag_front_facing: bool,
}
struct _shade_Output {
@location(0) color: vec4<f32>,
}
@fragment
fn shade(input: _shade_Input) -> _shade_Output {
var __luma_output: _shade_Output;
let coord = input.__luma_frag_coord.xy;
let facing = input.__luma_frag_front_facing;
let face = select(0.25, 1.0, facing);
__luma_output.color = vec4<f32>((coord.x * 0.0), (coord.y * 0.0), face, 1.0);
return __luma_output;
}