Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.88 KB | None | 0 0
  1. //--------------------------------------------------------------------------------------
  2. // Vertex Shader
  3. //--------------------------------------------------------------------------------------
  4. float4 VS( float4 Pos : POSITION ) : SV_POSITION
  5. {
  6.     return Pos;
  7. }
  8.  
  9.  
  10. //--------------------------------------------------------------------------------------
  11. // Pixel Shader
  12. //--------------------------------------------------------------------------------------
  13. float4 PS( float4 Pos : SV_POSITION ) : SV_Target
  14. {
  15.     return float4( 1.0f, 1.0f, 0.0f, 1.0f );    // Yellow, with Alpha = 1
  16. }
  17.  
  18.  
  19. //--------------------------------------------------------------------------------------
  20. technique Render
  21. {
  22.     pass P0
  23.     {
  24.         SetVertexShader( CompileShader( vs_4_0, VS() ) );
  25.         SetGeometryShader( NULL );
  26.         SetPixelShader( CompileShader( ps_4_0, PS() ) );
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement