Page 1 of 1

adding fog underwater

Posted: Tue Jul 29, 2014 2:16 pm
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

Re: adding fog underwater

Posted: Tue Jul 29, 2014 2:39 pm
by kklouzal
Each node that you want to receive fog must also have fog enabled.

Re: adding fog underwater

Posted: Tue Jul 29, 2014 2:42 pm
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?

Re: adding fog underwater

Posted: Thu Jul 31, 2014 12:53 pm
by devsh
depth buffer as texture, custom shaders and clipping planes