import { WebGLRenderer } from "three"; function createRenderer() { const renderer = new WebGLRenderer({ antialias: true }); // turn on the physically correct lighting model // (The browser complains: "THREE.WebGLRenderer: .physicallyCorrectLights has been removed. Set enderer.useLegacyLights instead." However, that changes the lighting in a way that doesn't look better.) renderer.physicallyCorrectLights = true; return renderer; } export { createRenderer };