createAmbientLight method
dynamic
createAmbientLight()
Implementation
createAmbientLight() {
if ( fbxTree.GlobalSettings != null && fbxTree.GlobalSettings!["AmbientColor"] != null ) {
var ambientColor = fbxTree.GlobalSettings!["AmbientColor"]["value"];
var r = ambientColor[ 0 ];
var g = ambientColor[ 1 ];
var b = ambientColor[ 2 ];
if ( r != 0 || g != 0 || b != 0 ) {
var color = new Color( r, g, b );
sceneGraph.add( new AmbientLight( color, 1 ) );
}
}
}