Skip to content

Commit

Permalink
Fix CameraComponent type (#277)
Browse files Browse the repository at this point in the history
  • Loading branch information
willeastcott authored Dec 19, 2023
1 parent 5bc3bdd commit 2f48be5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/shadow-catcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {

AppBase,
BoundingBox,
Camera,
CameraComponent,
Entity,
Layer,
MeshInstance,
Expand All @@ -25,9 +25,9 @@ class ShadowCatcher {
plane: Entity;
light: Entity;
sceneRoot: Entity;
camera: Camera;
camera: CameraComponent;

constructor(app: AppBase, camera: Camera, parent: Entity, sceneRoot: Entity) {
constructor(app: AppBase, camera: CameraComponent, parent: Entity, sceneRoot: Entity) {
// create and add the shadow layer
this.layer = new Layer({
name: 'Shadow Layer'
Expand Down

0 comments on commit 2f48be5

Please sign in to comment.