Skip to main content
gamedev.net
🔒 Locked

Blending

Started by Nile Jul 21, 2003 at 7:00 PM 0 replies 300+ views
Original Post
Nile
Nile
Hello everyone, I''m using glBlendFunc for lightmap multitexturing. Everything is working good, but the resulting scene is rather dark. I tried gamma correction, which brightens the scene, but addes strange color patches. Any idea what I can do to brighten the scene a bit. glBlendFunc (GL_DST_COLOR, GL_SRC_COLOR) Thanks.
Xirtion
Xirtion
The strange color patches might go away if you set glColor4f to bright white b4 you draw your polygon(ie/ glColor4f(1.0f, 1.0f, 1.0f, 1.0f)...they might be using an old color). Make sure you glEnable(GL_BLEND) and glDisable(GL_DEPTH_TEST). Also make sure that when you enable the light1 array that it is set to full brightness(1.0f''s)

X|X|X
X|X|X

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.