Files
crowd-funder-from-jason/src/components/World/components/lights.js
Matthew Raymer e5518cd47c fix: update Vue template syntax and improve Vite config
- 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
2025-04-18 09:59:33 +00:00

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 }