Advertisement Jump to content
Sign in to follow this  
Coluna

Using FOG as distance attenuator for terrain layer blending

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

Hello; Im doing a multi-layered terrain, and after the base pass (witch is a base texture and the first detail layer, without mask), i render the others layer for near terrain chunks...in FAR CRY, it seems that they use the FOG parameters to fade out the layer blending...i tried to do that using glBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA); and fog color to black (0,0,0,0), but it didnt work...of corse it could be done easily in a VS, just fading the vertex color to 0, but i wanna do it in fixed function...any idea? Thanks

Share this post


Link to post
Share on other sites
Advertisement
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!