debut triangle

This commit is contained in:
axelpicou
2024-03-20 13:03:56 +01:00
parent 70c19f4619
commit 6bd66dc5d4
11 changed files with 433 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
////////////////////////////////////////////////////////////////////////////////
// Filename: color.ps
////////////////////////////////////////////////////////////////////////////////
//////////////
// TYPEDEFS //
//////////////
struct PixelInputType
{
float4 position : SV_POSITION;
float4 color : COLOR;
};
////////////////////////////////////////////////////////////////////////////////
// Pixel Shader
////////////////////////////////////////////////////////////////////////////////
float4 ColorPixelShader(PixelInputType input) : SV_TARGET
{
return input.color;
}