!!ARBvp1.0 # # Fragment program to ... # # Orion Sky Lawlor, olawlor@acm.org, 2005/2/7 (Public Domain) # # Standard vertex shader header: PARAM mvp[4] = { state.matrix.mvp }; # MODELVIEW and PROJECTION matrix product # Map vertex to clip coordinates, by multiplying it by mvp matrix: DP4 result.position.x, mvp[0], vertex.position; DP4 result.position.y, mvp[1], vertex.position; DP4 result.position.z, mvp[2], vertex.position; DP4 result.position.w, mvp[3], vertex.position; # MOV result.texcoord[4].xyz,vertex.position; # world-space normal END