js/util.js
/**
 * Initialize a simple default renderer and binds it to the "webgl-output" dom
* element.
 * 
 * @param additionalProperties Additional properties to pass into the renderer
 */
Initialize a simple default renderer and binds it to the "webgl-output" dom
element.

@param additionalProperties Additional properties to pass into the renderer
Initialize a simple default renderer and binds it to the " webgl - output " dom element . @param additionalProperties Additional properties to pass into the renderer
function initRenderer(additionalProperties) {
    var props = (typeof additionalProperties !== 'undefined' && additionalProperties) ? additionalProperties : {};
    var renderer = new THREE.WebGLRenderer(props);
    renderer.shadowMap.enabled = true;
    renderer.shadowMapSoft = true;
    renderer.shadowMap.type = THREE.PCFSoftShadowMap;
    renderer.setClearColor(new THREE.Color(0x000000));
    renderer.setSize(window.innerWidth, window.innerHeight);
    renderer.shadowMap.enabled = true;
    document.getElementById("webgl-output").appendChild(renderer.domElement);
    return renderer;
}
function initRenderer ( additionalProperties ) { var props = ( typeof additionalProperties !== 'undefined' && additionalProperties ) ? additionalProperties : { } ; var renderer = new THREE . WebGLRenderer ( props ) ; renderer . shadowMap . enabled = true ; renderer . shadowMapSoft = true ; renderer . shadowMap . type = THREE . PCFSoftShadowMap ; renderer . setClearColor ( new THREE . Color ( 0x000000 ) ) ; renderer . setSize ( window . innerWidth , window . innerHeight ) ; renderer . shadowMap . enabled = true ; document . getElementById ( "webgl-output" ) . appendChild ( renderer . domElement ) ; return renderer ; }
Initialize a simple default renderer and binds it to the "webgl-output" dom
element.
Initialize a simple default renderer and binds it to the " webgl - output " dom element .