Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float4x4 xWorldViewProjection;
- struct VS_IN
- {
- float4 Position : POSITION0;
- float4 Color : COLOR0;
- };
- struct PS_IN
- {
- float4 Position : SV_POSITION;
- float4 Color : COLOR0;
- };
- // -------------
- // Vertex Shader
- // -------------
- PS_IN vs_main(VS_IN input)
- {
- PS_IN output;
- output.Position = mul(input.Position, xWorldViewProjection);
- output.Color = input.Color;
- return output;
- }
- // ------------
- // Pixel Shader
- // ------------
- float4 ps_main(PS_IN input) : SV_TARGET
- {
- return input.Color;
- }
- // ----------
- // Techniques
- // ----------
- technique11 BasicRender
- {
- pass BasicTriangle
- {
- SetVertexShader(CompileShader(vs_4_0_level_9_1, vs_main()));
- SetPixelShader(CompileShader(ps_4_0_level_9_1, ps_main()));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement