vs.1.1 // version instruction mov oPos, v0 ; Copy the postion mov oD0, v5 ; Diffuse color mov oT0, v7 mov oT1, v8 mov oT2, v9 mov oT3, v10 mov a0.x, c[4] ; Read which set of offsets to use ; copy uv-coordinates to all four texture stages ; and offset them according to a0 add oT0, v7, c[a0.x + 8] add oT1, v7, c[a0.x + 13] add oT2, v7, c[a0.x + 18] add oT3, v7, c[a0.x + 23]