VglScene
This is where you place objects, corresponding THREE.Scene.
Properties of VglObject3d are also available as mixin.
props
-
fogfog (optional)the color, near and far parameters of the scene’s fog
-
background-colorstring (optional)Expecting to accept a string representing a color. Will be overwrited by backgroundTexture prop if both props are set
-
background-texturename (optional)Expecting to accept a string representing a texture name.
-
namename (required)Name of the scene.
computed properties
-
instThe THREE.Scene instance.
methods
-
setBackgroundTexture(texture)Set scene’s background property to given texture.
-
emitAsScene()Emit an event in the
scenesnamespace.