www.jpct.net
jPCT-AE - a 3d engine for Android => Support => Topic started by: tao on March 14, 2014, 02:52:13 am
-
Hi,
Does JPCT support Fog effect? Like in U3D, I can specify the the distance and the color of the fog? If not, any clue on how to implement fog effect?
Many thanks!
-
You can use this: http://www.jpct.net/jpct-ae/doc/com/threed/jpct/World.html#setFogging(int) (http://www.jpct.net/jpct-ae/doc/com/threed/jpct/World.html#setFogging(int)) and this: http://www.jpct.net/jpct-ae/doc/com/threed/jpct/World.html#setFogParameters(float, float, float, float, float) (http://www.jpct.net/jpct-ae/doc/com/threed/jpct/World.html#setFogParameters(float, float, float, float, float))
-
It works, many thanks!