import { DirectionalLight , PointLight , HemisphereLight , AmbientLight , Scene } from "three" ; export const initLight = ( scene ) => { /**
      * 光源设置
      */ var directionalLight = new DirectionalLight ( 0x80b5ff , 1 ) ; directionalLight . position . set ( - 250 , 250 , 100 ) ; scene . add ( directionalLight ) ; var directionalLight = new DirectionalLight ( 0x80d4ff , 1 ) ; directionalLight . position . set ( - 250 , 250 , 100 ) ; scene . add ( directionalLight ) ; var directionalLight = new DirectionalLight ( 0x80b5ff , 1 ) ; directionalLight . position . set ( - 250 , 250 , 100 ) ; scene . add ( directionalLight ) ; var directionalLight = new DirectionalLight ( 0xc2ffff , 1 ) ; directionalLight . position . set ( - 250 , 250 , 100 ) ; scene . add ( directionalLight ) ; var pointLight = new PointLight ( 0x80d4ff , 1 ) ; pointLight . position . set ( - 250 , 250 , 100 ) ; scene . add ( pointLight ) ; var hemisphereLight = new HemisphereLight ( 0xffffff , 0x3d6399 , 1 ) ; hemisphereLight . position . set ( - 250 , 250 , 100 ) ; scene . add ( hemisphereLight ) ; var hemisphereLight = new HemisphereLight ( 0xffffff , 0x3d6399 , 1 ) ; hemisphereLight . position . set ( - 250 , 250 , 100 ) ; scene . add ( hemisphereLight ) ; var ambient = new AmbientLight ( 0x002bff , 0.8 ) ; scene . add ( ambient ) ; } ;