Harbor

branch main
showing the latest snapshot on main
workflow_fragment_builtins.hlsl 472 B · Plain text
shader/tests/golden/workflow_fragment_builtins.hlsl 0644 Raw
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;
}