Jump to content
  • Advertisement
Sign in to follow this  
muhkuh

OpenGL OpenGL vertex lighting question [renamed]

This topic is 5101 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 changed my previous question to this: Given: -OpenGL Standard Lighting -1 enabled point light with ambient=diffuse, no specular -one object -no global ambient lighting 1. Render the object as usual 2. Render in 2 passes 1st: light's diffuse set to zero 2nd: enable blending (GL_FUNC_ADD, GL_ONE, GL_ONE) restore light's diffuse color set light's ambient color to zero Shouldn't the output be the same? In Method 1 diffuse and ambient are added per vertex. Method 2 does it in the frame buffer. Why is the output of Method 2 much brighter than method 1? Thanks a lot. Markus [Edited by - muhkuh on December 2, 2005 6:00:32 AM]

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
Are you texturing this object?

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!