HAHA! me likey! great! done!
but… just one more thing … I have another texture, representing the clouds, a black and white one. In FFP I would use GL_LUMINANCE, how can I achieve the same effect in glsl?
sorry for so many questions, but this is really not my area, and I’m just trying to learn …
Originally posted by pedrosl: I have another texture, representing the clouds, a black and white one. In FFP I would use GL_LUMINANCE, how can I achieve the same effect in glsl?
In the same way. The glsl does not care about the internal format of the texture. The sampling from the GL_LUMINANCE texture will return the same values as in the FFP.