Advertisement
vovan333

D3DProject1/shaders.fx

Jan 29th, 2017
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. struct VOut
  2. {
  3.     float4 position : SV_POSITION;
  4.     float4 color : COLOR;
  5. };
  6.  
  7. VOut VShader(float4 position : POSITION, float4 color : COLOR)
  8. {
  9.     VOut output;
  10.  
  11.     position.x = position.x * 2;
  12.     position.y = position.y * 0.5;
  13.     position.z = position.z * 3.5;
  14.  
  15.     output.position = position;
  16.     output.color = color;
  17.  
  18.     return output;
  19. }
  20.  
  21. float4 PShader(float4 position : SV_POSITION, float4 color : COLOR) : SV_TARGET
  22. {
  23.  
  24.     float multiplier = 10;
  25.  
  26.     color.x = color.x * multiplier;
  27.     color.y = color.y * multiplier;
  28.     color.z = color.z * multiplier;
  29.  
  30.     return color;
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement