Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Volker Coors
Visualization
Commits
e3c8f567
Commit
e3c8f567
authored
May 26, 2023
by
Alfakhori
Browse files
Update public/threeJS/three1.html
parent
2ab087c2
Pipeline
#7511
passed with stages
in 10 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
public/threeJS/three1.html
View file @
e3c8f567
...
@@ -49,6 +49,10 @@ var cube = new THREE.Mesh( geometry, material );
...
@@ -49,6 +49,10 @@ var cube = new THREE.Mesh( geometry, material );
// Add cube to Scene
// Add cube to Scene
scene
.
add
(
cube
);
scene
.
add
(
cube
);
var
light
=
new
THREE
.
PointLight
(
0xFFFFFF
);
light
.
position
.
set
(
-
10
,
15
,
50
);
scene
.
add
(
light
);
// Render Loop
// Render Loop
var
render
=
function
()
{
var
render
=
function
()
{
requestAnimationFrame
(
render
);
requestAnimationFrame
(
render
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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