Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


GL Light and multitexturing

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

I''ve written a simple program that does alphablending via ARB_multitexture. It works correctly, but I when i enable light only one texture is corrected (unlighted...) my code looks like : texture0 combine RGB func : modulate sourceRGB 0 : texture operandRGB 0 : src_color combine alpha func : replace sourceAlpha 0 : texture operandAlpha 0 : src_alpha texture1 combine RGB func : interpolate sourceRGB 0 : texture operandRGB 0 : src_color sourceRGB 1 : previous operandRGB 1 : src color sourceRGB 2 : previous operandRGB 2 : src_alpha when i enable light on such a scene only texture0 receive light. How could I make that texture1 receive it too ? (and all this in one pass...)

Share this post

Link to post
Share on other sites

  • 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!