lowpoly-walking-simulator/directx11_hellovr/dxHelloworld1/shaders.shader

21 lines
364 B
Plaintext
Raw Permalink Normal View History

2024-11-14 11:54:38 +00:00
struct VOut
{
float4 position : SV_POSITION;
float4 color : COLOR;
};
VOut ColorVertexShader(float4 position : POSITION, float4 color : COLOR)
{
VOut output;
output.position = position;
output.color = color;
return output;
}
float4 ColorPixelShader(float4 position : SV_POSITION, float4 color : COLOR) : SV_TARGET
{
return color;
}