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
14 lines
484 B
JavaScript
14 lines
484 B
JavaScript
import { WebGLRenderer } from 'three'
|
|
|
|
function createRenderer() {
|
|
const renderer = new WebGLRenderer({ antialias: true })
|
|
|
|
// turn on the physically correct lighting model
|
|
// (The browser complains: "THREE.WebGLRenderer: the property .physicallyCorrectLights has been removed. Set renderer.useLegacyLights instead." However, that changes the lighting in a way that doesn't look better.)
|
|
renderer.physicallyCorrectLights = true
|
|
|
|
return renderer
|
|
}
|
|
|
|
export { createRenderer }
|