Advertisement
Guest User

Untitled

a guest
Jun 7th, 2017
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. float4x4 ShaderMatrix;
  3.  
  4. struct VS_OUTPUT
  5. {
  6.     float4 PositionOut : POSITION;
  7.     float4 ColorOut : COLOR;
  8. };
  9.  
  10. //Vertex Shader
  11. VS_OUTPUT VS(float4 PositionIn : POSITION, float4 ColorIn : COLOR)
  12. {
  13.     VS_OUTPUT VertexOut;
  14.     VertexOut.PositionOut = mul(PositionIn, ShaderMatrix);
  15.     VertexOut.ColorOut = ColorIn;
  16.     return VertexOut;
  17. }
  18.  
  19. //Pixel Shader
  20. float4 PS(float4 Color : COLOR) : COLOR
  21. {
  22.     return Color;
  23. }
  24.  
  25. technique RenderScene
  26. {
  27.     pass P0
  28.     {          
  29.         VertexShader = compile vs_1_1 VS();
  30.         PixelShader  = compile ps_1_1 PS();
  31.     }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement