1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
struct _shade_Input {
float4 __luma_frag_coord : SV_Position;
bool __luma_frag_front_facing : SV_IsFrontFace;
};
struct _shade_Output {
float4 color : SV_Target0;
};
_shade_Output shade(_shade_Input input) {
_shade_Output __luma_output;
float2 coord = input.__luma_frag_coord.xy;
bool facing = input.__luma_frag_front_facing;
float face = (facing ? 1.0 : 0.25);
__luma_output.color = float4((coord.x * 0.0), (coord.y * 0.0), face, 1.0);
return __luma_output;
}