vmware-svga/examples/rt-gamma-test/cube.fx

37 lines
495 B
HLSL
Raw Permalink Normal View History

2009-10-29 14:36:41 -05:00
float4x4 matView, matProj;
struct VS_Input
{
float4 Pos : POSITION;
float4 Color : COLOR0;
};
struct VS_Output
{
float4 Pos : POSITION;
float4 Color : COLOR0;
};
VS_Output
MyVertexShader(VS_Input Input)
{
VS_Output Output;
Output.Pos = mul(mul(Input.Pos, matView), matProj);
Output.Color = Input.Color;
return Output;
}
struct PS_Input
{
float4 Color : COLOR0;
};
float4
MyPixelShader(PS_Input Input) : COLOR
{
return Input.Color;
}