src/SceneHelper.js
/**
     * takes care of creating the light
     */
takes care of creating the light
takes care of creating the light
createLight()
    {
        let directionalLight1 = new THREE.DirectionalLight(0xff9933, 1)
        directionalLight1.position.y = 1
        directionalLight1.name = "lightFromTop"
        this.scene.add(directionalLight1)
        let directionalLight2 = new THREE.DirectionalLight(0x003366, 1.5)
        directionalLight2.position.y = -1
        directionalLight2.name = "lightFromBottom"
        this.scene.add(directionalLight2)
        let hemi = new THREE.HemisphereLight(0xffffff, 0x505560, 1.2)
        this.scene.add(hemi)
    }
createLight ( ) { let directionalLight1 = new THREE . DirectionalLight ( 0xff9933 , 1 ) directionalLight1 . position . y = 1 directionalLight1 . name = "lightFromTop" this . scene . add ( directionalLight1 ) let directionalLight2 = new THREE . DirectionalLight ( 0x003366 , 1.5 ) directionalLight2 . position . y = - 1 directionalLight2 . name = "lightFromBottom" this . scene . add ( directionalLight2 ) let hemi = new THREE . HemisphereLight ( 0xffffff , 0x505560 , 1.2 ) this . scene . add ( hemi ) }
takes care of creating the light
takes care of creating the light
// set a directional light