ARB Vertex Program that Does Nothing?
Posted: Thu Sep 05, 2013 3:46 am
I'm messing around with vertex programs now, since a lot of the calculations don't need to be done per-pixel, but I'm getting weird results.
From what I've seen, this should give the same results as not having any vertex program (since I don't use more than position and texcoords 0-2), but that's not the case. I'm getting really small, tiling textures (1 quake unit?), when it should be a texture that fills the whole screen. What am I missing here?
Code: Select all
!!ARBvp1.0
DP4 result.position.x, state.matrix.mvp.row[0], vertex.position;
DP4 result.position.y, state.matrix.mvp.row[1], vertex.position;
DP4 result.position.z, state.matrix.mvp.row[2], vertex.position;
DP4 result.position.w, state.matrix.mvp.row[3], vertex.position;
MOV result.color, vertex.color;
MOV result.texcoord[0], vertex.texcoord[0];
MOV result.texcoord[1], vertex.texcoord[1];
MOV result.texcoord[2], vertex.texcoord[2];
END