Archived

This topic is now archived and is closed to further replies.

Moshman666

Environment mapping using vertex arrays

Recommended Posts

Moshman666    122
Hello, Using OpenGL, how do I do a multipass render with the first texture pass being a standard texture mapping and the second texture pass being a environment map? I have a vertex array, with an associated texCoordArray (+colours and normals, but thats irrelevant now) which I feed to GL using glDrawElements(). This all works. I can use the texCoordArray, or use let GL generate tex coords for environment mapping. NOW, how do I combine the two using single pass multitexturing without drawing twice and blending the second pass? Is it possible at all? Thanks for any help! Paul

Share this post


Link to post
Share on other sites