@@ -3,15 +3,15 @@ Command: npx angular-three-gltf@1.1.11 apps/kitchen-sink/src/app/soba/camera
33**/
44
55import {
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 ,
1515} from '@angular/core' ;
1616import { beforeRender , NgtArgs , NgtThreeEvent } from 'angular-three' ;
1717import { NgtsPerspectiveCamera } from 'angular-three-soba/cameras' ;
@@ -22,7 +22,6 @@ import { BufferGeometry, Color, Group, MathUtils, Mesh, MeshStandardMaterial } f
2222import { GLTF } from 'three-stdlib' ;
2323import { SCROLL } from './camera-scroll' ;
2424
25-
2625import modelUrl from './model-transformed.glb' ;
2726
2827type ActionName = 'CameraAction.005' ;
@@ -117,14 +116,16 @@ export type ModelGLTFResult = GLTF & {
117116 <ngts-perspective-camera
118117 [options]="{ makeDefault: true, far: 100, near: 0.1, fov: 28, rotation: [-Math.PI / 2, 0, 0] }"
119118 >
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>
128129 </ngts-perspective-camera>
129130 </ngt-group>
130131
0 commit comments