Advertisement
Guest User

shaders

a guest
Jan 4th, 2011
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.35 KB | None | 0 0
  1. void VS(float3 pos : POSITION, out float4 posO : POSITION, out float2 texO : TEXCOORD0)
  2. {                                              
  3.     posO = mul(float4(pos,1.0f), g_mWorldViewProj);
  4.     texO = pos.xz;                             
  5. }                                              
  6.                                                
  7. float4 PS(float2 tex : TEXCOORD0) : COLOR      
  8. {                                  
  9.     float height = tex2D(Heightfield,tex).x;
  10.     return float4(height, height, height, 1.0f);
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement