Last active
March 28, 2020 09:40
-
-
Save RenaudRohlinger/89c727121a175f2bfb7699ff2d06d817 to your computer and use it in GitHub Desktop.
This file contains 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
var scene = new THREE.Scene(); | |
var renderer = new THREE.WebGLRenderer(); | |
var camera = new THREE.PerspectiveCamera(45, 0, 1, 2000); | |
var mesh = null; | |
// basic stuff | |
function initThree () { | |
renderer.setPixelRatio(window.devicePixelRatio || 1); | |
renderer.setClearColor(0x161216); | |
camera.position.y = 0; | |
camera.position.z = 2000; | |
document.body.appendChild(renderer.domElement); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment