-
Notifications
You must be signed in to change notification settings - Fork 0
Create a Scene
Nathan Goodwin edited this page Oct 9, 2019
·
2 revisions
Creating a scene is super easy in Scorpion. With only one line of code, it is possible to create a scene, camera, and renderer and attach them to the body of your webpage. This page will walk you through using the spnScene()
function and all of its abilities.
Input parameters:
spnScene(fov, x, y, z, backgroundColor)
-
fov
- number - camera field of view -
x
- number - camera position on the x axis -
y
- number - camera position on the y axis -
z
- number - camera position on the z axis -
backgroundColor
- color - the background color of the scene
spnScene - the scene to attach things to
spnRenderer - the renderer
spnCamera - the camera