adding fog underwater

Post your questions, suggestions and experiences regarding game design, integration of external libraries here. For irrEdit, irrXML and irrKlang, see the
ambiera forums
Post Reply
taiBsu
Posts: 3
Joined: Tue Apr 30, 2013 8:19 am

adding fog underwater

Post by taiBsu »

Hey guys,
I want to add fog to my camera view if it comes below my water pane's y position. I saw there's a function called

Code: Select all

driver->addFog()
but adding this function into my main loop surrounded by an if command changes nothing. what do I have to look for adding that effect?
Regards
taiBsu
kklouzal
Posts: 343
Joined: Sun Mar 28, 2010 8:14 pm
Location: USA - Arizona

Re: adding fog underwater

Post by kklouzal »

Each node that you want to receive fog must also have fog enabled.
Dream Big Or Go Home.
Help Me Help You.
taiBsu
Posts: 3
Joined: Tue Apr 30, 2013 8:19 am

Re: adding fog underwater

Post by taiBsu »

kklouzal wrote:Each node that you want to receive fog must also have fog enabled.
so the camera has got to have fog enabled too if underwater, right?
devsh
Competition winner
Posts: 2057
Joined: Tue Dec 09, 2008 6:00 pm
Location: UK
Contact:

Re: adding fog underwater

Post by devsh »

depth buffer as texture, custom shaders and clipping planes
Post Reply