Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void VS(float3 pos : POSITION, out float4 posO : POSITION, out float2 texO : TEXCOORD0)
- {
- posO = mul(float4(pos,1.0f), g_mWorldViewProj);
- texO = pos.xz;
- }
- float4 PS(float2 tex : TEXCOORD0) : COLOR
- {
- float height = tex2D(Heightfield,tex).x;
- return float4(height, height, height, 1.0f);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement