File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
libs/soba/cameras/src/lib Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 55 Component ,
66 ElementRef ,
77 TemplateRef ,
8- afterNextRender ,
98 computed ,
109 contentChild ,
1110 effect ,
@@ -102,7 +101,7 @@ export class NgtsOrthographicCamera {
102101 constructor ( ) {
103102 extend ( { OrthographicCamera, Group } ) ;
104103
105- afterNextRender ( ( ) => {
104+ effect ( ( ) => {
106105 this . cameraRef ( ) . nativeElement . updateProjectionMatrix ( ) ;
107106 } ) ;
108107
Original file line number Diff line number Diff line change 55 Component ,
66 ElementRef ,
77 TemplateRef ,
8- afterNextRender ,
98 contentChild ,
109 effect ,
1110 input ,
@@ -78,7 +77,7 @@ export class NgtsPerspectiveCamera {
7877 constructor ( ) {
7978 extend ( { PerspectiveCamera, Group } ) ;
8079
81- afterNextRender ( ( ) => {
80+ effect ( ( ) => {
8281 this . cameraRef ( ) . nativeElement . updateProjectionMatrix ( ) ;
8382 } ) ;
8483
@@ -98,7 +97,7 @@ export class NgtsPerspectiveCamera {
9897 this . store . update ( { camera : this . cameraRef ( ) . nativeElement } ) ;
9998 onCleanup ( ( ) => this . store . update ( ( ) => ( { camera : oldCam } ) ) ) ;
10099 } ) ;
101-
100+ /**/
102101 let count = 0 ;
103102 let oldEnvMap : Color | Texture | null = null ;
104103 injectBeforeRender ( ( { gl, scene } ) => {
You can’t perform that action at this time.
0 commit comments