26 lines
402 B
HLSL
26 lines
402 B
HLSL
cbuffer CB0 : register(b1)
|
|
{
|
|
float4x4 _ViewProjection;
|
|
};
|
|
|
|
struct VSInput
|
|
{
|
|
float3 position : POSITION;
|
|
};
|
|
|
|
struct PSInput
|
|
{
|
|
float4 position : SV_POSITION;
|
|
};
|
|
|
|
PSInput MainVS(VSInput input)
|
|
{
|
|
PSInput output;
|
|
output.position = mul(_ViewProjection, float4(input.position, 1.0));
|
|
return output;
|
|
}
|
|
|
|
float4 MainPS(PSInput input) : SV_TARGET
|
|
{
|
|
return float4(0.0, 1.0, 0.0, 1.0);
|
|
} |