Jump to content
  • Advertisement
Sign in to follow this  

OpenGL what blending mode for shadow mapping

This topic is 5149 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hello. i've got problems with shadow mapping in opengl: here is how i render my scene : activate Pbuffer for each shadow projector render scene from projector point of view save depth map in a texture desactivate Pbuffer for each shadow projector only activate ambient lighting (diffuse and specular colors are set to (0, 0, 0, 1)) render scene enable additive blending for each shadow projector activate only diffuse and specular render scene disable additive blending for additive blending, i tried glBlend(GL_ONE, GL_ONE) and glBlendFunc(GL_SRC_COLOR, GL_ONE). but it dont work, i mean, i got shadows and all that but non shadowed colors is not the same as when i'm in non shadowing mode i think its the blending mode. anybody has an idea. sorry for my english.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!