Docs for Version: 1.0a
Show:
Extends MObject
Module: Fog

Constructor

Fog

(
  • tableOptions
)

Parameters:

  • tableOptions Dict

    fog options

Example:

fog = new Fog({
                                    zMinMax:[0.0,100.0],
                                    intensity:1.0,
                                    color:[0.1,0.3,0.9]
                                })

Item Index

Methods

addChilds

(
  • mobject
)

Inherited from MObject:

Sets parent on MObject and unbinds current parent in RenderTree

Parameters:

  • mobject MObject

    mobject object to add as a child to RenderTree

remove

()

Inherited from MObject:

Removes MObject from RenderTree

setParent

(
  • parent
)

Inherited from MObject:

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:

Example:

world = new Scene() gshader = new basicShader() someMaterial = new Material({}) gshader.setParent(world) someMaterial.setParent(world)