Guest User

Untitled

a guest
Oct 20th, 2020
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. struct VSout
  2. {
  3. float4 color : Color;
  4. float4 pos : SV_Position;
  5.  
  6. };
  7.  
  8. cbuffer CBuf{
  9. matrix transform;
  10. };
  11.  
  12. VSout main(float3 pos : Position, float4 color : Color)
  13. {
  14. VSout vso;
  15. vso.color = color;
  16. vso.pos = mul(float4(pos, 1.0f), transform);
  17.  
  18. return vso;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment