Commit e3c8f567 authored by Alfakhori's avatar Alfakhori
Browse files

Update public/threeJS/three1.html

parent 2ab087c2
Pipeline #7511 passed with stages
in 10 seconds
......@@ -49,6 +49,10 @@ var cube = new THREE.Mesh( geometry, material );
// Add cube to Scene
scene.add( cube );
var light = new THREE.PointLight(0xFFFFFF);
light.position.set(-10, 15, 50);
scene.add(light);
// Render Loop
var render = function () {
requestAnimationFrame( render );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment