forked from jsnbuchanan/crowd-funder-for-time-pwa
- Fix Vue template syntax in App.vue by using proper event handler format - Update Vite config to properly handle ESM imports and crypto modules - Add manual chunks for better code splitting - Improve environment variable handling in vite-env.d.ts - Fix TypeScript linting errors in App.vue
15 lines
389 B
JavaScript
15 lines
389 B
JavaScript
import { DirectionalLight, DirectionalLightHelper } from 'three'
|
|
|
|
function createLights(color) {
|
|
const light = new DirectionalLight(color, 4)
|
|
const lightHelper = new DirectionalLightHelper(light, 0)
|
|
light.position.set(60, 100, 30)
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
light.tick = () => {}
|
|
|
|
return { light, lightHelper }
|
|
}
|
|
|
|
export { createLights }
|