This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- Wherever your head tag is located, add the new partial --> | |
| <head> | |
| {{ partial "google-fonts" . }} | |
| </head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Remember to bring in three.js and here is the script for the trackball controls as well: | |
| // https://cdn.rawgit.com/mrdoob/three.js/dev/examples/js/controls/TrackballControls.js | |
| //RENDERER | |
| const renderer = new THREE.WebGLRenderer({ | |
| canvas: document.getElementById('canvas'), | |
| antialias: true | |
| }); | |
| renderer.setClearColor(0x25c8ce); | |
| renderer.setPixelRatio(window.devicePixelRatio); |