23 lines
585 B
PostScript
23 lines
585 B
PostScript
////////////////////////////////////////////////////////////////////////////////
|
|
// Filename: color.ps
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
//////////////
|
|
// TYPEDEFS //
|
|
//////////////
|
|
struct PixelInputType
|
|
{
|
|
float4 position : SV_POSITION;
|
|
float4 color : COLOR;
|
|
};
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
// Pixel Shader
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
float4 ColorPixelShader(PixelInputType input) : SV_TARGET
|
|
{
|
|
return input.color;
|
|
}
|