Skip to content

Commit 5552d81

Browse files
committed
fix(soba/cameras): expose fbo.texture as camera content context instead of fbo
1 parent c7d7b5c commit 5552d81

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

libs/soba/cameras/src/lib/orthographic-camera.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ const defaultOptions: NgtsOrthographicCameraOptions = {
5353
</ngt-orthographic-camera>
5454
5555
<ngt-group #group>
56-
<ng-container [ngTemplateOutlet]="cameraContent() ?? null" [ngTemplateOutletContext]="{ $implicit: fbo }" />
56+
<ng-container
57+
[ngTemplateOutlet]="cameraContent() ?? null"
58+
[ngTemplateOutletContext]="{ $implicit: fbo.texture }"
59+
/>
5760
</ngt-group>
5861
`,
5962
imports: [NgTemplateOutlet],

libs/soba/cameras/src/lib/perspective-camera.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ const defaultOptions: NgtsPerspectiveCameraOptions = {
4545
</ngt-perspective-camera>
4646
4747
<ngt-group #group>
48-
<ng-container [ngTemplateOutlet]="cameraContent() ?? null" [ngTemplateOutletContext]="{ $implicit: fbo }" />
48+
<ng-container
49+
[ngTemplateOutlet]="cameraContent() ?? null"
50+
[ngTemplateOutletContext]="{ $implicit: fbo.texture }"
51+
/>
4952
</ngt-group>
5053
`,
5154
imports: [NgTemplateOutlet],

0 commit comments

Comments
 (0)