add beginning of visualization for statistics, unmodified from blog code
This commit is contained in:
12
src/components/World/systems/renderer.js
Normal file
12
src/components/World/systems/renderer.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import { WebGLRenderer } from "three";
|
||||
|
||||
function createRenderer() {
|
||||
const renderer = new WebGLRenderer({ antialias: true });
|
||||
|
||||
// turn on the physically correct lighting model
|
||||
renderer.physicallyCorrectLights = true;
|
||||
|
||||
return renderer;
|
||||
}
|
||||
|
||||
export { createRenderer };
|
||||
Reference in New Issue
Block a user