fps
07-30-2001, 04:58 AM
i have a untextured, colored object
lit with a lightsource (which stays fix at 0,0,0). now i wish to add the color of a environment-map texture (rgb) at a variable level of intensity.. ranging from 0.0f (just the lit object) to 1.0f (the lit object + the full envmap).
getting the final image in 2 passes (render the colored, lit object first and then disable lighting and rerender it with the envmap and needed alphavalue)works. but how to do that in one pass?
Setting the TexEnv to GL_ADD just adds the texture color, but with the full brightness.
Using GL_BLEND or GL_MODULATE doesnt fit too.
Any Ideas? Thanx for shortanswers.
lit with a lightsource (which stays fix at 0,0,0). now i wish to add the color of a environment-map texture (rgb) at a variable level of intensity.. ranging from 0.0f (just the lit object) to 1.0f (the lit object + the full envmap).
getting the final image in 2 passes (render the colored, lit object first and then disable lighting and rerender it with the envmap and needed alphavalue)works. but how to do that in one pass?
Setting the TexEnv to GL_ADD just adds the texture color, but with the full brightness.
Using GL_BLEND or GL_MODULATE doesnt fit too.
Any Ideas? Thanx for shortanswers.