Vivien
Add project
0b12ad4
raw
history blame contribute delete
384 Bytes
import { DirectionalLight, HemisphereLight } from 'https://unpkg.com/three@0.117.0/build/three.module.js';
function createLights() {
const ambientLight = new HemisphereLight(
'white',
'darkslategrey',
5,
);
const mainLight = new DirectionalLight('white', 4);
mainLight.position.set(10, 10, 10);
return { ambientLight, mainLight };
}
export { createLights };