Ember

awefef

Feb 26th, 2014
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.58 KB | None | 0 0
  1. //--------------------------------------------------------------------------------------
  2. // Vertex Shader
  3. //--------------------------------------------------------------------------------------
  4. void ColourVS(
  5.     float3 iPosition : POSITION,
  6.     float3 iNormal   : NORMAL,
  7.     float2 iUv       : TEXCOORD,
  8.     // output
  9.     out float4 oPosition : SV_POSITION,
  10.     out float2 oUv       : TEXCOORD0,
  11.     out float4 oColor    : TEXCOORD1)
  12. {
  13.     oPosition = mul(float4(iPosition, 1.0f), WorldViewProjectionMatrix);
  14.     oUv = iUv;
  15.     oColor = float4(iNormal, 1.0f);
  16.  
  17.     return;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment