Skip to content

Commit fbb1531

Browse files
committed
feat(core): bump three 172
1 parent ebd3c3a commit fbb1531

File tree

5 files changed

+58
-158
lines changed

5 files changed

+58
-158
lines changed

Diff for: apps/kitchen-sink/src/app/soba/bruno-simons-20k/bruno-simons-20k.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { ChangeDetectionStrategy, Component } from '@angular/core';
22
import { NgtCanvas } from 'angular-three';
33
import { ToggleButton } from '../../toggle-button';
4-
import { debug, Experience } from './experience';
4+
import { debug, Experience, withN8ao } from './experience';
55

66
@Component({
77
template: `
@@ -13,8 +13,9 @@ import { debug, Experience } from './experience';
1313
[camera]="{ position: [-30, 35, -15], near: 30, far: 55, fov: 12 }"
1414
/>
1515
16-
<div class="absolute top-10 right-2">
16+
<div class="absolute top-10 right-2 flex gap-2 items-center">
1717
<button [(toggleButton)]="debug">Toggle debug</button>
18+
<button [(toggleButton)]="withN8ao">Toggle N8ao</button>
1819
</div>
1920
`,
2021
changeDetection: ChangeDetectionStrategy.OnPush,
@@ -24,4 +25,5 @@ import { debug, Experience } from './experience';
2425
export default class BrunoSimons20k {
2526
protected sceneGraph = Experience;
2627
protected debug = debug;
28+
protected withN8ao = withN8ao;
2729
}

Diff for: apps/kitchen-sink/src/app/soba/bruno-simons-20k/experience.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import { MathUtils, Mesh, MeshStandardMaterial } from 'three';
1515
import { GLTF } from 'three-stdlib';
1616

1717
export const debug = signal(false);
18+
export const withN8ao = signal(true);
1819

1920
type HatGLTF = GLTF & {
2021
nodes: { Plane006: Mesh; Plane006_1: Mesh };
@@ -146,7 +147,10 @@ export class Model {
146147
147148
@if (withEffect()) {
148149
<ngtp-effect-composer>
149-
<ngtp-n8ao [options]="{ aoRadius: 0.5, intensity: 1 }" />
150+
@if (withN8ao()) {
151+
<ngtp-n8ao [options]="{ aoRadius: 0.5, intensity: 1 }" />
152+
}
153+
150154
<ngtp-depth-of-field [options]="{ target: [0, 0, -2.5], focusRange: 0.1, bokehScale: 10 }" />
151155
<ngtp-tone-mapping />
152156
</ngtp-effect-composer>
@@ -189,6 +193,7 @@ export class Experience {
189193
protected readonly Math = Math;
190194

191195
protected debug = debug;
196+
protected withN8ao = withN8ao;
192197

193198
withEffect = input(true);
194199
}

Diff for: libs/core/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"@angular/common": ">=19.0.0 <20.0.0",
2626
"@angular/core": ">=19.0.0 <20.0.0",
2727
"ngxtension": ">=3.0.0",
28-
"three": ">=0.148.0 <0.172.0",
28+
"three": ">=0.148.0 <0.173.0",
2929
"@nativescript/angular": ">=18.0.0 <19.0.0",
3030
"@nativescript/canvas": "2.0.0-webgpu.11",
3131
"@nativescript/canvas-three": "2.0.0-webgpu.11",

Diff for: package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"@swc/core": "1.10.7",
5858
"@types/jest": "29.5.14",
5959
"@types/node": "20.14.12",
60-
"@types/three": "^0.171.0",
60+
"@types/three": "^0.172.0",
6161
"@typescript-eslint/utils": "8.19.1",
6262
"autoprefixer": "^10.4.20",
6363
"cypress": "^13.17.0",
@@ -88,7 +88,7 @@
8888
"storybook": "^8.4.7",
8989
"storybook-addon-deep-controls": "^0.9.2",
9090
"tailwindcss": "^3.4.17",
91-
"three": "^0.171.0",
91+
"three": "^0.172.0",
9292
"ts-jest": "^29.2.5",
9393
"ts-node": "10.9.2",
9494
"typescript": "5.6.3",
@@ -131,15 +131,15 @@
131131
"front-matter": "^4.0.2",
132132
"gl-noise": "^1.6.1",
133133
"gsap": "^3.12.5",
134-
"hls.js": "^1.5.18",
134+
"hls.js": "^1.5.19",
135135
"ionicons": "^7.4.0",
136136
"maath": "^0.10.8",
137137
"marked": "^13.0.3",
138138
"marked-gfm-heading-id": "^4.1.1",
139139
"marked-highlight": "^2.2.1",
140140
"mermaid": "^10.9.2",
141141
"meshline": "^3.3.1",
142-
"n8ao": "^1.9.3",
142+
"n8ao": "^1.9.4",
143143
"ngxtension": "^4.2.0",
144144
"node-three-gltf": "^1.8.2",
145145
"prismjs": "^1.29.0",
@@ -149,7 +149,7 @@
149149
"stats-gl": "^3.6.0",
150150
"three-custom-shader-material": "~6.2.1",
151151
"three-mesh-bvh": "^0.8.3",
152-
"three-stdlib": "^2.35.6",
152+
"three-stdlib": "^2.35.7",
153153
"troika-three-text": "^0.52.3",
154154
"tslib": "^2.8.1",
155155
"zone.js": "0.15.0"

0 commit comments

Comments
 (0)