Jump to content
  • Advertisement

Archived

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

DanG

Mixing Texturing and Lighting

This topic is 5937 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 have a qestion. How do you control how the texturing and the lighting of an object are blended in OpenGL? I want to be able to control the blending of the two but i don''t know how. Any hints? He who said money was the root of all evil knew little of the nature of money and less about the nature of man.

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
Better asked in the OpenGL forum...

OpenGL applies diffuse lighting, then specular lighting, then the texture.

If you want any blending/ordering other than that, you''d have to to render in two passes.

Share this post


Link to post
Share on other sites
You can apply specular after the texture with an extension. You can control how a texture blends with whatever is under it with a glBlendFunc... other that I''m not sure what you need.

------------
- outRider -

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Thnks for the input. Specular after the texturing sounds like what i want. However i have never used an OpenGL extension before, is it simple? I''m currently using GL_MODULATE to do default blending in the game. I''ll look into extensions on this subject, thanx

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.

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

Sign me up!