Jump to content
  • Advertisement
Sign in to follow this  
ade-the-heat

want shininess on terrain

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

Is there a way of getting shininess on parts of the terrain drawn using vertex arrays - eg for snow glistening in the sun ? cheers

Share this post


Link to post
Share on other sites
Advertisement
Sure, just do it the way you do it for an ordinary mesh... or is that what you're asking?

Or are you asking whether you can use shaders on a vertex buffer instead of a mesh?

I'm confuzzled.

Share this post


Link to post
Share on other sites
the first way which springs to mind is using a specular map for the surface, which is applied with the texture map and allows you to adjust/assign specular values for the surface (you'll need a lighting system which computes the specular component as well)

I'd use shaders for it, I dont think you can do it without, at least not in the way I'm thinking anyways.

Share this post


Link to post
Share on other sites
I myself have added a specular map to an already bump mapped terrian. While the per-pixel highligts were nice at moments, the resulting preformance hit was more than I wanted.

But if that is the effect you want, it's pretty simple to do in a fragment program.

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!