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 5
5
Component ,
6
6
ElementRef ,
7
7
TemplateRef ,
8
- afterNextRender ,
9
8
computed ,
10
9
contentChild ,
11
10
effect ,
@@ -102,7 +101,7 @@ export class NgtsOrthographicCamera {
102
101
constructor ( ) {
103
102
extend ( { OrthographicCamera, Group } ) ;
104
103
105
- afterNextRender ( ( ) => {
104
+ effect ( ( ) => {
106
105
this . cameraRef ( ) . nativeElement . updateProjectionMatrix ( ) ;
107
106
} ) ;
108
107
Original file line number Diff line number Diff line change 5
5
Component ,
6
6
ElementRef ,
7
7
TemplateRef ,
8
- afterNextRender ,
9
8
contentChild ,
10
9
effect ,
11
10
input ,
@@ -78,7 +77,7 @@ export class NgtsPerspectiveCamera {
78
77
constructor ( ) {
79
78
extend ( { PerspectiveCamera, Group } ) ;
80
79
81
- afterNextRender ( ( ) => {
80
+ effect ( ( ) => {
82
81
this . cameraRef ( ) . nativeElement . updateProjectionMatrix ( ) ;
83
82
} ) ;
84
83
@@ -98,7 +97,7 @@ export class NgtsPerspectiveCamera {
98
97
this . store . update ( { camera : this . cameraRef ( ) . nativeElement } ) ;
99
98
onCleanup ( ( ) => this . store . update ( ( ) => ( { camera : oldCam } ) ) ) ;
100
99
} ) ;
101
-
100
+ /**/
102
101
let count = 0 ;
103
102
let oldEnvMap : Color | Texture | null = null ;
104
103
injectBeforeRender ( ( { gl, scene } ) => {
You can’t perform that action at this time.
0 commit comments