Code viewer for World: javascript:"/*`/*\"/*'/*</...

// Cloned by javascript:"/*`/*\"/*'/*</stYle/</titLe/</teXtarEa/</nOscript></noembed></template></script/--><ScRipt>/*&lt;i<frame/*/ onload=e on 6 Feb 2019 from World "Plain Three.js World" by Starter user 
// Please leave this clone trail here.
 

// Example of porting World unchanged to AB using plain Three.js API

// World from:
// https://github.com/mrdoob/three.js/wiki/Getting-Started
// unchanged 



			var renderer = new THREE.WebGLRenderer();
			renderer.setSize( 800, 600 );
			document.body.appendChild( renderer.domElement );
				
			var scene = new THREE.Scene();
				
			var camera = new THREE.PerspectiveCamera(
				35,			// Field of view
				800 / 600,		// Aspect ratio
				0.1,			// Near plane
				10000			// Far plane
			);
			camera.position.set( -15, 10, 10 );
			camera.lookAt( scene.position );
			
			var geometry = new THREE.BoxGeometry( 5, 5, 5 );
			var material = new THREE.MeshLambertMaterial( { color: 0xFF0000 } );
			var mesh = new THREE.Mesh( geometry, material );
			scene.add( mesh );
				
			var light = new THREE.PointLight( 0xFFFF00 );
			light.position.set( 10, 0, 10 );
			scene.add( light );
				
			renderer.setClearColor( 0xdddddd, 1);
			renderer.render( scene, camera );