aorii/resource/shader/default_shader.slang
2024-10-20 17:29:11 +08:00

23 lines
397 B
Plaintext

struct VSInput {
float3 position : POSITION;
float4 color : COLOR;
};
struct PSInput {
float4 position : SV_POSITION;
float4 color : COLOR;
};
PSInput vertex_main(VSInput input)
{
PSInput output;
output.position = float4(input.position, 1.0f);
output.color = input.color;
return output;
}
float4 pixel_main(PSInput input) : SV_TARGET
{
return input.color;
}