Jump to content
  • Advertisement
Sign in to follow this  
phb5000

"Background" Light

This topic is 4475 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

How can I add low intensity background light (i guess ambient light). But I dont want it to light up everything with full intensity, just low intensity so that it isnt black on certain directions when using spot or point lights. Should I make a vertex shader?

Share this post


Link to post
Share on other sites
Advertisement
Well, how are you doing your current lighting? Are you using the fixed function pipeline or are you using shaders? It does sound to me like you want ambient light, just set to a very low level so that things aren't pitch black. If you already have some form of ambient light, try turning it down quite low.

Share this post


Link to post
Share on other sites
Yes, ambient light renderstate.

Also you need to create materials for your objects. You can specify how much the material will return. That way you can leave everything reflecting no ambient light for those you want that way, and for the background have it return the ambient light.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!