98 |
// The following code computes T A^-1 E^-1 A and stores it |
// The following code computes T A^-1 E^-1 A and stores it |
99 |
// in place of T in the constant registers |
// in place of T in the constant registers |
100 |
|
|
101 |
|
#ifdef GL_VERTEX_PROGRAM_NV |
102 |
GLuint base = unit * 4 + tex_addr_base; |
GLuint base = unit * 4 + tex_addr_base; |
103 |
|
|
104 |
glMatrixMode(GL_MATRIX0_NV); |
glMatrixMode(GL_MATRIX0_NV); |
137 |
glTrackMatrixNV(GL_VERTEX_PROGRAM_NV, base, GL_NONE, GL_IDENTITY_NV); |
glTrackMatrixNV(GL_VERTEX_PROGRAM_NV, base, GL_NONE, GL_IDENTITY_NV); |
138 |
|
|
139 |
glMatrixMode(GL_MODELVIEW); |
glMatrixMode(GL_MODELVIEW); |
140 |
|
#endif |
141 |
} |
} |
142 |
|
|
143 |
|
|
273 |
if (texgenvp.getSource().length() == 0) |
if (texgenvp.getSource().length() == 0) |
274 |
loadVP(); |
loadVP(); |
275 |
|
|
276 |
|
#ifdef GL_VERTEX_PROGRAM_NV |
277 |
/* Track the product of modelview and projection matrices */ |
/* Track the product of modelview and projection matrices */ |
278 |
glTrackMatrixNV(GL_VERTEX_PROGRAM_NV, m_p_addr, GL_MODELVIEW_PROJECTION_NV, GL_IDENTITY_NV); |
glTrackMatrixNV(GL_VERTEX_PROGRAM_NV, m_p_addr, GL_MODELVIEW_PROJECTION_NV, GL_IDENTITY_NV); |
279 |
|
#endif |
280 |
|
|
281 |
/* Set up VP TexGen parameters for each texture unit */ |
/* Set up VP TexGen parameters for each texture unit */ |
282 |
int unit = 0; |
int unit = 0; |