Fog Class
Constructor
Fog
(
-
tableOptions
Parameters:
-
tableOptions
Dictfog options
Example:
fog = new Fog({
zMinMax:[0.0,100.0],
intensity:1.0,
color:[0.1,0.3,0.9]
})
Methods
addChilds
(
-
mobject
Sets parent on MObject and unbinds current parent in RenderTree
Parameters:
-
mobject
MObjectmobject object to add as a child to RenderTree
remove
()
Removes MObject from RenderTree
setParent
(
-
parent
Sets parent on MObject and unbinds current parent in RenderTree. Usually this is done inside GameObject, but you have also possibility to construct RenderTree by yourself.
Parameters:
-
parent
MObjectparent object
Example:
world = new Scene() gshader = new basicShader() someMaterial = new Material({}) gshader.setParent(world) someMaterial.setParent(world)