Skip to content

Commit

Permalink
fix broken link, update package-lock.json
Browse files Browse the repository at this point in the history
  • Loading branch information
trusktr committed Oct 5, 2024
1 parent 82f6854 commit c0a546d
Show file tree
Hide file tree
Showing 2 changed files with 822 additions and 3,000 deletions.
11 changes: 7 additions & 4 deletions guide/cameras/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,23 +39,26 @@ A perspective camera is very similar to a camera in the real world: it has a
view angle such that more things in the world are visible further away from the
camera.

In the following example, a `<lume-perspective-camera>` element is placed into
In the following example, a [`<lume-perspective-camera>`](../../api/cameras/PerspectiveCamera) element is placed into
the scene, and we can control several aspects of the camera like the field of
view (fov), position, and rotation.

All cameras start "inactive". When a manually-created camera is not `active`
(i.e. it does not have an `active` attribute, or the attribute is set to
`active="false"`, or the `.active` property is set to `false`), then the scene
will use its internal default camera (see
[`Scene#camera`](../api/core/Scene#camera) for info on the default camera). Once
[`Scene#camera`](../../api/core/Scene#camera) for info on the default camera). Once
the perspective camera is active then the view will be displayed through the
lense of that camera, and we can manipulate that camera to control our view.

See the [`PerspectiveCamera`](../../api/cameras/PerspectiveCamera) class for details on all of its
attributes and properties.

<live-code id="cameraExample"></live-code>

# Camera Rig

The [`<lume-camera-rig>`](../api/cameras/CameraRig) element is similar to a
The [`<lume-camera-rig>`](../../api/cameras/CameraRig) element is similar to a
real-life camera rig that holds a camera making it easy to move the camera in space using controls for rotating
the camera around or moving the camera closer or further to or from a focus point.

Expand All @@ -69,5 +72,5 @@ local origin, and scroll or pinch with fingers to zoom:
rigExample.content = cameraRigExample
</script>

See the [`CameraRig`](../api/cameras/CameraRig) class for details on all of its
See the [`CameraRig`](../../api/cameras/CameraRig) class for details on all of its
attributes and properties.
Loading

0 comments on commit c0a546d

Please sign in to comment.