Jump to content
  • Advertisement
Sign in to follow this  

Writing shaders for a 3d object with different sets of UV's

This topic is 3585 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, We've a 3d object (say, a building)in which a geometric entity(Set1) contains one uv channel for diffuse texture(lightmap baked) and another geometric entity (Set2) cotains two UV channel, one for tiled texture and another for light map. Certain parts of the building will have reflection. So both Set1 and Set2 will have an additional uv channel for cube map (reflection). When writing a shader(GLSL) for reflection is it possible to write a single shader for both Set1 and Set2. If yes, please give me some suggestions, else provide me some suggestions for writing separate shaders with minimum state set change. We've modeled the building as a 3d object containing different geometric entities (Set1, Set2 etc.,)based on the number of texture uv's used. Is this the correct way of modeling and applying shaders. Is it possible to model the building as one geometric mesh with different sets of uv's and with shaders applied properly? Thanks

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.

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!