338 |
|
|
339 |
//std::cerr << "Creating VPCode with the source " << code.str() << "\n"; |
//std::cerr << "Creating VPCode with the source " << code.str() << "\n"; |
340 |
|
|
341 |
texgenvp = VPCode(code.c_str()); |
texgenvp = VertexProgram(code.c_str()); |
342 |
} |
} |
343 |
|
|
344 |
void PaperPass::setUp_VP(LightParam *param) { |
void PaperPass::setUp_VP(LightParam *param) { |
360 |
else std::cerr << "Warning: ignoring null LightSetup\n"; |
else std::cerr << "Warning: ignoring null LightSetup\n"; |
361 |
} |
} |
362 |
|
|
363 |
texgenvp(); // Bind vertex program |
texgenvp.bind(); // Bind vertex program |
364 |
#ifdef GL_VERTEX_PROGRAM_NV |
#ifdef GL_VERTEX_PROGRAM_NV |
365 |
glEnable(GL_VERTEX_PROGRAM_NV); |
glEnable(GL_VERTEX_PROGRAM_NV); |
366 |
#endif |
#endif |