Jump to content
  • Advertisement
Sign in to follow this  
Civilwar

GLSL and lighting

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

Hi,

I used simple shader for mixing textures, but now I lost all lights. Shader overrides lighting. I just need to use lights like without shader, is there any way? Or do I have to program custom light in shader?

Thanks

Share this post


Link to post
Share on other sites
Advertisement
The instant you start using shaders, you tell the fixed functionality pipeline to go away. That includes everything: textures, lighting, etc. So, by using shaders, you assume full responsibility for how the final scene is rendered. The good news is that you now have dozens of other better lighting algorithms at your disposal. The bad news is you get to code it yourself. :)

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!