Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jeyaram
Visualization
Commits
2ab087c2
You need to sign in or sign up before continuing.
Commit
2ab087c2
authored
May 26, 2023
by
Alfakhori
Browse files
Update public/threeJS/three1.html
parent
46084063
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/threeJS/three1.html
View file @
2ab087c2
...
...
@@ -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
.
Mesh
Basic
Material
(
{
color
:
"
#433F81
"
}
);
var
material
=
new
THREE
.
Mesh
Phong
Material
(
{
color
:
"
#433F81
"
}
);
var
cube
=
new
THREE
.
Mesh
(
geometry
,
material
);
// Add cube to Scene
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment