infact heres your function:
i think...
TextureCoord(x#,y#,z#,nx#,ny#,nz#) plane = createplane() aligntovector plane,nx,ny,nz,(i cant remember which axis),0 tformpoint x,y,z,plane,0 u = tformedx() v = tformedy() End Function
i think...