aorii/resource/shader/default_shader.slang
2024-10-16 20:15:25 +08:00

20 lines
345 B
Plaintext

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