Created
November 14, 2012 07:14
-
-
Save poezn/4070777 to your computer and use it in GitHub Desktop.
Another Inlet
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
{"description":"Another Inlet","endpoint":"","display":"webgl","public":true,"require":[],"tab":"edit","display_percent":0.7,"play":false,"loop":false,"restart":false,"autoinit":true,"pause":true,"loop_type":"period","bv":false,"nclones":15,"clone_opacity":0.4,"duration":3000,"ease":"linear","dt":0.01} |
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 renderer = tb.renderer; | |
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); | |
scene.add( camera ); | |
var cube = new THREE.Mesh( | |
new THREE.CubeGeometry( 5, 5, 5 ), | |
new THREE.MeshLambertMaterial( { color: 0xFF0000 } ) | |
); | |
scene.add( cube ); | |
var light = new THREE.PointLight( 0xFFFF00 ); | |
light.position.set( 10, 0, 10 ); | |
scene.add( light ); | |
renderer.render( scene, camera ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment