; ;constants set by app: ;C0-c3 = transposed world-view-perspective matrix. ;c4.x = weight for first stream ;c4.y = weight for second stream (possibly) ;c5.xyz = light1 direction (in object space) (normalized) ;c6.xyx = light1 colour ;c7.xyz = light2 direction ;c8.xyz = light2 colour ;c9.xyz = ambient colour vs.1.0 ;vertex components ;v0 = position1 ;v1 = position2 ;v2 = normal1 ;v3 = normal2 ;v6 = single texture coordinate ;v7 = model1 diffuse ;v8 = model2 diffuse ;position mul r0, v0, c4.x ;lerp between the 2 vertex streams mad r0, v1, c4.y, r0 ;lrp r0, c4.x, v0, v1 ;try to get this working again!! dp4 oPos.x, r0, c0 ;0 ;transform interpolated vertex position to HCLIP space dp4 oPos.y, r0, c1 ;1 dp4 oPos.z, r0, c2 ;2 dp4 oPos.w, r0, c3 ;3 ;lighting ;do nothing mov oD0, v8 ;texture coordinates add oT0, v6, c10 ;coordindex0 add oT1, v6, c10 ;coordindex1 ;mov oT0, v6 ;mov oT1, v6