@@ -20,17 +20,16 @@ const niceColors = ['#99b898', '#fecea8', '#ff847c', '#e84a5f', '#2a363b'] as co
2020extend ( THREE ) ;
2121
2222@Component ( {
23- selector : 'app-plane' ,
24- standalone : true ,
25- template : `
23+ selector : 'app-plane' ,
24+ template : `
2625 <ngt-mesh #mesh [receiveShadow]="true">
2726 <ngt-plane-geometry *args="[1000, 1000]" />
2827 <ngt-mesh-phong-material [color]="color()" />
2928 </ngt-mesh>
3029 ` ,
31- schemas : [ CUSTOM_ELEMENTS_SCHEMA ] ,
32- changeDetection : ChangeDetectionStrategy . OnPush ,
33- imports : [ NgtArgs ] ,
30+ schemas : [ CUSTOM_ELEMENTS_SCHEMA ] ,
31+ changeDetection : ChangeDetectionStrategy . OnPush ,
32+ imports : [ NgtArgs ]
3433} )
3534export class Plane {
3635 color = input . required < string > ( ) ;
@@ -48,17 +47,16 @@ export class Plane {
4847}
4948
5049@Component ( {
51- selector : 'app-box' ,
52- standalone : true ,
53- template : `
50+ selector : 'app-box' ,
51+ template : `
5452 <ngt-mesh #mesh [castShadow]="true" [receiveShadow]="true">
5553 <ngt-box-geometry *args="args" />
5654 <ngt-mesh-lambert-material color="white" />
5755 </ngt-mesh>
5856 ` ,
59- schemas : [ CUSTOM_ELEMENTS_SCHEMA ] ,
60- changeDetection : ChangeDetectionStrategy . OnPush ,
61- imports : [ NgtArgs ] ,
57+ schemas : [ CUSTOM_ELEMENTS_SCHEMA ] ,
58+ changeDetection : ChangeDetectionStrategy . OnPush ,
59+ imports : [ NgtArgs ]
6260} )
6361export class Box {
6462 args : Triplet = [ 4 , 4 , 4 ] ;
@@ -77,9 +75,8 @@ export class Box {
7775}
7876
7977@Component ( {
80- selector : 'app-instanced-spheres' ,
81- standalone : true ,
82- template : `
78+ selector : 'app-instanced-spheres' ,
79+ template : `
8380 <ngt-instanced-mesh
8481 #instancedMesh
8582 [castShadow]="true"
@@ -92,9 +89,9 @@ export class Box {
9289 <ngt-mesh-phong-material [vertexColors]="true" />
9390 </ngt-instanced-mesh>
9491 ` ,
95- imports : [ NgtArgs ] ,
96- schemas : [ CUSTOM_ELEMENTS_SCHEMA ] ,
97- changeDetection : ChangeDetectionStrategy . OnPush ,
92+ imports : [ NgtArgs ] ,
93+ schemas : [ CUSTOM_ELEMENTS_SCHEMA ] ,
94+ changeDetection : ChangeDetectionStrategy . OnPush
9895} )
9996export class InstancedSpheres {
10097 count = input ( 100 ) ;
@@ -123,8 +120,7 @@ export class InstancedSpheres {
123120}
124121
125122@Component ( {
126- standalone : true ,
127- template : `
123+ template : `
128124 <ngt-hemisphere-light [intensity]="0.35 * Math.PI" />
129125 <ngt-spot-light
130126 [angle]="0.3"
@@ -147,10 +143,10 @@ export class InstancedSpheres {
147143 <app-instanced-spheres />
148144 </ngtc-physics>
149145 ` ,
150- imports : [ InstancedSpheres , Box , Plane , NgtcPhysics , NgtArgs , NgtcDebug ] ,
151- schemas : [ CUSTOM_ELEMENTS_SCHEMA ] ,
152- changeDetection : ChangeDetectionStrategy . OnPush ,
153- host : { class : 'kimenatic-experience' } ,
146+ imports : [ InstancedSpheres , Box , Plane , NgtcPhysics , NgtArgs , NgtcDebug ] ,
147+ schemas : [ CUSTOM_ELEMENTS_SCHEMA ] ,
148+ changeDetection : ChangeDetectionStrategy . OnPush ,
149+ host : { class : 'kimenatic-experience' }
154150} )
155151export class Experience {
156152 Math = Math ;
0 commit comments