Any one can help with equivalent HLSL code for this VSH

Code Snippet


dcl_position0 v0
dcl_normal0 v3
dcl_texcoord0 v6

; Store output position
m4x4 oPos, v0, c12

;Copy tex coords
mov oT0.xy, v6

Re: Game Technologies: Graphics HLSL from VSH

Alexey Barkovoy

Not _exactly_ but pretty close - you will need to update input registers (vXX) for this code to work.

Code Snippet

float4x4 g_mWorldViewProjection: register(vs, c12); // World * View * Projection matrix

void VShader( float4 Pos : POSITION,
float3 Normal : NORMAL,
float2 Tex : TEXCOORD0,
out float4 oPos : POSITION,
out float2 oTex : TEXCOORD0 )
oPos = mul( Pos, g_mWorldViewProjection );
oTex = Tex;