Commit 2ab087c2 authored by Alfakhori's avatar Alfakhori
Browse files

Update public/threeJS/three1.html

parent 46084063
Pipeline #7510 passed with stages
in 10 seconds
......@@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<title>Cube Demo</title>
<title>Three.js Cube and Cylinder</title>
<style>
body { margin: 0; }
canvas { display: block; }
......@@ -43,7 +43,7 @@ document.body.appendChild( renderer.domElement );
// Create a Cube Mesh with basic material
var geometry = new THREE.BoxGeometry( 1, 1, 1 );
var material = new THREE.MeshBasicMaterial( { color: "#433F81" } );
var material = new THREE.MeshPhongMaterial( { color: "#433F81" } );
var cube = new THREE.Mesh( geometry, material );
// Add cube to Scene
......
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