ambientLight

control the ambient light of a scene

virtuosity.engine3d.ambientLight

Methods


Methods

position

get / set the position of the ambient Light

virtuosity.engine3d.ambientLight.position(canvas, x, y, z);


Parameter Type Description
canvas String name of the canvas
x Number x position of the ambient light (null will not change the x position)
y Number y position of the ambient light (null will not change the y position)
z Number z position of the ambient light (null will not change the z position)

intensity

get / set the intensity of the ambient Light

virtuosity.engine3d.ambientLight.intensity(canvas, intensity);


Parameter Type Description
canvas String name of the canvas
intensity Int intensity of the light