Class: Scene

THING.Scene(param)

Scene The scene object.

Constructor

new Scene(param)

The scene of object(s).
Parameters:
Name Type Description
param Object The initial parameters.
Source:

Members

ambientLight :THING.AmbientLight

Get/Set the ambient light.
Type:
Source:
Example
let app = THING.App.current;
	app.scene.ambientLight.color = 'blue';
	app.scene.ambientLight.intensity = 0.1;
 let ret1 = app.scene.ambientLight.color == 'blue';
 let ret2 = app.scene.ambientLight.intensity == 0.1;
// @expect(ret1 == true && ret2 == true);

envMapLightIntensity :Number

Get/Set the environment map light intensity between 0 and 1.
Type:
  • Number
Source:
Example
app.scene.envMapLightIntensity = 0.5;
	// @expect(app.scene.envMapLightIntensity == 0.5);

outputEncodingType :TexelEncodingType

Get/Set the output enconding type.
Type:
Source: