I think I’m doing something wrong… I’m using multitexturing for a school project, and what I’m trying isn’t working. So I decided to modify the inspiration, the underwater example from GLUT.
My modified version doesn’t work either, so that’s why I think I’m doing something wrong. Could someone take a look at it? I’ve placed the modified underwater.c at http://loki.skwirl.ca/underwater.c
It compiles under Apple’s OpenGL for MacOS X, I don’t know if it’ll compile elsewhere.
Okay, I’ve managed to get this working… however, I don’t have it working in my own code… ugh… any insight as to where I could possibly be going wrong?
I have some primitives with a primary texture, some with materials. In order to keep my caustic texture, I’m using a blank texture for the primitives with materials. For the others, the first texture unit is that primitive’s texture. For all primitives, texture 2 is the caustic texture. However, at the moment, it’s not showing up on any of them.