@@ -3,15 +3,15 @@ Command: npx angular-three-gltf@1.1.11 apps/kitchen-sink/src/app/soba/camera
3
3
**/
4
4
5
5
import {
6
- ChangeDetectionStrategy ,
7
- Component ,
8
- CUSTOM_ELEMENTS_SCHEMA ,
9
- effect ,
10
- ElementRef ,
11
- inject ,
12
- signal ,
13
- viewChild ,
14
- DOCUMENT
6
+ ChangeDetectionStrategy ,
7
+ Component ,
8
+ CUSTOM_ELEMENTS_SCHEMA ,
9
+ DOCUMENT ,
10
+ effect ,
11
+ ElementRef ,
12
+ inject ,
13
+ signal ,
14
+ viewChild ,
15
15
} from '@angular/core' ;
16
16
import { beforeRender , NgtArgs , NgtThreeEvent } from 'angular-three' ;
17
17
import { NgtsPerspectiveCamera } from 'angular-three-soba/cameras' ;
@@ -22,7 +22,6 @@ import { BufferGeometry, Color, Group, MathUtils, Mesh, MeshStandardMaterial } f
22
22
import { GLTF } from 'three-stdlib' ;
23
23
import { SCROLL } from './camera-scroll' ;
24
24
25
-
26
25
import modelUrl from './model-transformed.glb' ;
27
26
28
27
type ActionName = 'CameraAction.005' ;
@@ -117,14 +116,16 @@ export type ModelGLTFResult = GLTF & {
117
116
<ngts-perspective-camera
118
117
[options]="{ makeDefault: true, far: 100, near: 0.1, fov: 28, rotation: [-Math.PI / 2, 0, 0] }"
119
118
>
120
- <ngt-directional-light * [position]="[10, 20, 15]" castShadow [intensity]="Math.PI * 2">
121
- <ngt-value [rawValue]="-0.0001" attach="shadow.bias" />
122
- <ngt-vector2 *args="[1024, 1024]" attach="shadow.mapSize" />
123
- <ngt-value [rawValue]="8" attach="shadow.camera.right" />
124
- <ngt-value [rawValue]="8" attach="shadow.camera.top" />
125
- <ngt-value [rawValue]="-8" attach="shadow.camera.left" />
126
- <ngt-value [rawValue]="-8" attach="shadow.camera.bottom" />
127
- </ngt-directional-light>
119
+ <ng-template>
120
+ <ngt-directional-light [position]="[10, 20, 15]" castShadow [intensity]="Math.PI * 2">
121
+ <ngt-value [rawValue]="-0.0001" attach="shadow.bias" />
122
+ <ngt-vector2 *args="[1024, 1024]" attach="shadow.mapSize" />
123
+ <ngt-value [rawValue]="8" attach="shadow.camera.right" />
124
+ <ngt-value [rawValue]="8" attach="shadow.camera.top" />
125
+ <ngt-value [rawValue]="-8" attach="shadow.camera.left" />
126
+ <ngt-value [rawValue]="-8" attach="shadow.camera.bottom" />
127
+ </ngt-directional-light>
128
+ </ng-template>
128
129
</ngts-perspective-camera>
129
130
</ngt-group>
130
131
0 commit comments