Skip to content

Instantly share code, notes, and snippets.

@nazrdogan
Last active December 29, 2015 02:59
Show Gist options
  • Save nazrdogan/7604615 to your computer and use it in GitHub Desktop.
Save nazrdogan/7604615 to your computer and use it in GitHub Desktop.
Three.js Sahne oluşturma
//burda sahnemizi oluşturuyoruz
var scene = new THREE.Scene();
//burda camerayı oluşturuyoruz.
var camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 0.1, 1000 );
//burda WebGL renderer oluşturuyoruz.
var renderer = new THREE.WebGLRenderer(); renderer.setSize( window.innerWidth, window.innerHeight );
document.body.appendChild( renderer.domElement );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment