mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-22 17:12:25 -05:00
20 lines
No EOL
373 B
HLSL
20 lines
No EOL
373 B
HLSL
struct INPUT_VERTEX
|
|
{
|
|
float3 pos : POSITION;
|
|
float4 col : COLOR0;
|
|
};
|
|
|
|
struct OUTPUT_VERTEX
|
|
{
|
|
float4 pos : POSITION;
|
|
float4 col : TEXCOORD0;
|
|
};
|
|
|
|
float4x4 mvpMatrix: register(c0);
|
|
|
|
OUTPUT_VERTEX main(INPUT_VERTEX input) {
|
|
OUTPUT_VERTEX output;
|
|
output.pos = mul(mvpMatrix, float4(input.pos, 1.0f));
|
|
output.col = input.col;
|
|
return output;
|
|
} |