- struct VS_OUTPUT
- {
- float4 Pos:SV_POSITION;
- float4 Col:COLOR0;
- };
- VS_OUTPUT vs_main(float4 Position:POSITION, float4 Color:COLOR0)
- {
- VS_OUTPUT ret_var;
- ret_var.Pos = float4(Position.xy,0.5,1);
- ret_var.Col = Color;
- return ret_var;
- }
- float4 ps_main(VS_OUTPUT Input):SV_TARGET
- {
- return float4(1,0,0,1);
- }
Posted by Razvan Aguridan on Sun 25 Oct 16:18
report abuse | download | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.