angular-three-soba 4.0.0-next.13 → 4.0.0-next.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/abstractions/lib/catmull-rom-line.d.ts +51 -51
- package/abstractions/lib/edges.d.ts +51 -51
- package/abstractions/lib/line.d.ts +1 -1
- package/abstractions/lib/text.d.ts +1 -1
- package/fesm2022/angular-three-soba-materials.mjs +44 -49
- package/fesm2022/angular-three-soba-materials.mjs.map +1 -1
- package/materials/lib/mesh-portal-material.d.ts +1 -1
- package/materials/lib/mesh-refraction-material.d.ts +1 -1
- package/package.json +9 -9
- package/performances/lib/instances/instances.d.ts +1 -1
- package/performances/lib/points/points.d.ts +1 -1
- package/shaders/lib/mesh-refraction-material.d.ts +2 -2
- package/staging/lib/accumulative-shadows.d.ts +1 -1
- package/staging/lib/center.d.ts +2 -2
- package/staging/lib/sky.d.ts +1 -1
- package/staging/lib/spot-light.d.ts +1 -1
- package/staging/lib/stage.d.ts +3 -3
|
@@ -123,57 +123,6 @@ export declare class NgtsCatmullRomLine {
|
|
|
123
123
|
dispose: {};
|
|
124
124
|
}[T]) => void)>)) | undefined;
|
|
125
125
|
dispose?: (((() => void) | Readonly<() => void> | null) & (((() => void) & (() => void)) | Readonly<(() => void) & (() => void)>)) | undefined;
|
|
126
|
-
color?: THREE.ColorRepresentation | undefined;
|
|
127
|
-
alphaToCoverage?: boolean | undefined | undefined;
|
|
128
|
-
dashed?: boolean | undefined | undefined;
|
|
129
|
-
dashScale?: number | undefined | undefined;
|
|
130
|
-
dashSize?: number | undefined | undefined;
|
|
131
|
-
dashOffset?: number | undefined | undefined;
|
|
132
|
-
gapSize?: number | undefined | undefined;
|
|
133
|
-
linewidth?: number | undefined | undefined;
|
|
134
|
-
resolution?: (THREE.Vector2 & (number | THREE.Vector2 | [x: number, y: number] | Readonly<THREE.Vector2> | readonly [x: number, y: number])) | undefined;
|
|
135
|
-
wireframe?: boolean | undefined | undefined;
|
|
136
|
-
worldUnits?: boolean | undefined | undefined;
|
|
137
|
-
alphaHash?: boolean | undefined | undefined;
|
|
138
|
-
alphaTest?: number | undefined | undefined;
|
|
139
|
-
blendAlpha?: number | undefined | undefined;
|
|
140
|
-
blendColor?: (THREE.ColorRepresentation & (string | number | THREE.Color | [r: number, g: number, b: number] | [color: THREE.ColorRepresentation] | Readonly<THREE.Color> | readonly [r: number, g: number, b: number] | readonly [color: THREE.ColorRepresentation])) | undefined;
|
|
141
|
-
blendDst?: 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 211 | 212 | 213 | 214 | undefined;
|
|
142
|
-
blendDstAlpha?: number | undefined | undefined;
|
|
143
|
-
blendEquation?: 100 | 101 | 102 | 103 | 104 | undefined;
|
|
144
|
-
blendEquationAlpha?: number | undefined | undefined;
|
|
145
|
-
blending?: 0 | 1 | 2 | 3 | 4 | 5 | undefined;
|
|
146
|
-
blendSrc?: 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | undefined;
|
|
147
|
-
blendSrcAlpha?: number | undefined | undefined;
|
|
148
|
-
clipIntersection?: boolean | undefined | undefined;
|
|
149
|
-
clippingPlanes?: THREE.Plane[] | (THREE.Plane[] & readonly THREE.Plane[]) | undefined;
|
|
150
|
-
clipShadows?: boolean | undefined | undefined;
|
|
151
|
-
colorWrite?: boolean | undefined | undefined;
|
|
152
|
-
defines?: any;
|
|
153
|
-
depthFunc?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | undefined;
|
|
154
|
-
depthTest?: boolean | undefined | undefined;
|
|
155
|
-
depthWrite?: boolean | undefined | undefined;
|
|
156
|
-
opacity?: number | undefined | undefined;
|
|
157
|
-
polygonOffset?: boolean | undefined | undefined;
|
|
158
|
-
polygonOffsetFactor?: number | undefined | undefined;
|
|
159
|
-
polygonOffsetUnits?: number | undefined | undefined;
|
|
160
|
-
precision?: "highp" | "mediump" | "lowp" | null | undefined | undefined;
|
|
161
|
-
premultipliedAlpha?: boolean | undefined | undefined;
|
|
162
|
-
forceSinglePass?: boolean | undefined | undefined;
|
|
163
|
-
dithering?: boolean | undefined | undefined;
|
|
164
|
-
side?: 0 | 1 | 2 | undefined;
|
|
165
|
-
shadowSide?: 0 | 1 | 2 | undefined;
|
|
166
|
-
toneMapped?: boolean | undefined | undefined;
|
|
167
|
-
transparent?: boolean | undefined | undefined;
|
|
168
|
-
format?: THREE.PixelFormat | undefined;
|
|
169
|
-
stencilWrite?: boolean | undefined | undefined;
|
|
170
|
-
stencilFunc?: 512 | 513 | 514 | 515 | 516 | 517 | 518 | 519 | undefined;
|
|
171
|
-
stencilRef?: number | undefined | undefined;
|
|
172
|
-
stencilWriteMask?: number | undefined | undefined;
|
|
173
|
-
stencilFuncMask?: number | undefined | undefined;
|
|
174
|
-
stencilFail?: 0 | 7680 | 7681 | 7682 | 7283 | 34055 | 34056 | 5386 | undefined;
|
|
175
|
-
stencilZFail?: 0 | 7680 | 7681 | 7682 | 7283 | 34055 | 34056 | 5386 | undefined;
|
|
176
|
-
stencilZPass?: 0 | 7680 | 7681 | 7682 | 7283 | 34055 | 34056 | 5386 | undefined;
|
|
177
126
|
geometry?: import("three-stdlib").LineGeometry | Readonly<import("three-stdlib").LineGeometry | undefined>;
|
|
178
127
|
material?: import("three-stdlib").LineMaterial | Readonly<import("three-stdlib").LineMaterial | undefined>;
|
|
179
128
|
isLine2?: Readonly<true | undefined>;
|
|
@@ -188,8 +137,20 @@ export declare class NgtsCatmullRomLine {
|
|
|
188
137
|
} | undefined>;
|
|
189
138
|
updateMorphTargets?: (() => void) | Readonly<(() => void) | undefined>;
|
|
190
139
|
getVertexPosition?: ((index: number, target: THREE.Vector3) => THREE.Vector3) | Readonly<((index: number, target: THREE.Vector3) => THREE.Vector3) | undefined>;
|
|
140
|
+
color?: THREE.ColorRepresentation | undefined;
|
|
141
|
+
dashed?: boolean | undefined | undefined;
|
|
142
|
+
dashScale?: number | undefined | undefined;
|
|
143
|
+
dashSize?: number | undefined | undefined;
|
|
144
|
+
dashOffset?: number | undefined | undefined;
|
|
145
|
+
gapSize?: number | undefined | undefined;
|
|
146
|
+
opacity?: number | undefined | undefined;
|
|
191
147
|
isLineMaterial?: Readonly<true | undefined>;
|
|
148
|
+
linewidth?: number | undefined | undefined;
|
|
149
|
+
resolution?: (THREE.Vector2 & (number | THREE.Vector2 | [x: number, y: number] | Readonly<THREE.Vector2> | readonly [x: number, y: number])) | undefined;
|
|
150
|
+
alphaToCoverage?: boolean | undefined | undefined;
|
|
151
|
+
worldUnits?: boolean | undefined | undefined;
|
|
192
152
|
isShaderMaterial?: Readonly<true | undefined>;
|
|
153
|
+
defines?: any;
|
|
193
154
|
uniforms?: {
|
|
194
155
|
[uniform: string]: THREE.IUniform<any>;
|
|
195
156
|
} | Readonly<{
|
|
@@ -198,6 +159,7 @@ export declare class NgtsCatmullRomLine {
|
|
|
198
159
|
uniformsGroups?: THREE.UniformsGroup[] | Readonly<THREE.UniformsGroup[] | undefined>;
|
|
199
160
|
vertexShader?: Readonly<string | undefined>;
|
|
200
161
|
fragmentShader?: Readonly<string | undefined>;
|
|
162
|
+
wireframe?: boolean | undefined | undefined;
|
|
201
163
|
wireframeLinewidth?: Readonly<number | undefined>;
|
|
202
164
|
fog?: Readonly<boolean | undefined>;
|
|
203
165
|
lights?: Readonly<boolean | undefined>;
|
|
@@ -215,11 +177,49 @@ export declare class NgtsCatmullRomLine {
|
|
|
215
177
|
glslVersion?: "100" | "300 es" | null | undefined;
|
|
216
178
|
setValues?: ((parameters: THREE.ShaderMaterialParameters) => void) | Readonly<((parameters: THREE.ShaderMaterialParameters) => void) | undefined>;
|
|
217
179
|
isMaterial?: Readonly<true | undefined>;
|
|
180
|
+
alphaHash?: boolean | undefined | undefined;
|
|
181
|
+
blendAlpha?: number | undefined | undefined;
|
|
182
|
+
blendColor?: (THREE.ColorRepresentation & (string | number | THREE.Color | [r: number, g: number, b: number] | [color: THREE.ColorRepresentation] | Readonly<THREE.Color> | readonly [r: number, g: number, b: number] | readonly [color: THREE.ColorRepresentation])) | undefined;
|
|
183
|
+
blendDst?: 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 211 | 212 | 213 | 214 | undefined;
|
|
184
|
+
blendDstAlpha?: number | undefined | undefined;
|
|
185
|
+
blendEquation?: 100 | 101 | 102 | 103 | 104 | undefined;
|
|
186
|
+
blendEquationAlpha?: number | undefined | undefined;
|
|
187
|
+
blending?: 0 | 1 | 2 | 3 | 4 | 5 | undefined;
|
|
188
|
+
blendSrc?: 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | undefined;
|
|
189
|
+
blendSrcAlpha?: number | undefined | undefined;
|
|
190
|
+
clipIntersection?: boolean | undefined | undefined;
|
|
191
|
+
clippingPlanes?: THREE.Plane[] | (THREE.Plane[] & readonly THREE.Plane[]) | undefined;
|
|
192
|
+
clipShadows?: boolean | undefined | undefined;
|
|
193
|
+
colorWrite?: boolean | undefined | undefined;
|
|
194
|
+
depthFunc?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | undefined;
|
|
195
|
+
depthTest?: boolean | undefined | undefined;
|
|
196
|
+
depthWrite?: boolean | undefined | undefined;
|
|
197
|
+
stencilWrite?: boolean | undefined | undefined;
|
|
198
|
+
stencilFunc?: 512 | 513 | 514 | 515 | 516 | 517 | 518 | 519 | undefined;
|
|
199
|
+
stencilRef?: number | undefined | undefined;
|
|
200
|
+
stencilWriteMask?: number | undefined | undefined;
|
|
201
|
+
stencilFuncMask?: number | undefined | undefined;
|
|
202
|
+
stencilFail?: 0 | 7680 | 7681 | 7682 | 7283 | 34055 | 34056 | 5386 | undefined;
|
|
203
|
+
stencilZFail?: 0 | 7680 | 7681 | 7682 | 7283 | 34055 | 34056 | 5386 | undefined;
|
|
204
|
+
stencilZPass?: 0 | 7680 | 7681 | 7682 | 7283 | 34055 | 34056 | 5386 | undefined;
|
|
205
|
+
polygonOffset?: boolean | undefined | undefined;
|
|
206
|
+
polygonOffsetFactor?: number | undefined | undefined;
|
|
207
|
+
polygonOffsetUnits?: number | undefined | undefined;
|
|
208
|
+
precision?: "highp" | "mediump" | "lowp" | null | undefined | undefined;
|
|
209
|
+
premultipliedAlpha?: boolean | undefined | undefined;
|
|
210
|
+
forceSinglePass?: boolean | undefined | undefined;
|
|
211
|
+
dithering?: boolean | undefined | undefined;
|
|
212
|
+
side?: 0 | 1 | 2 | undefined;
|
|
213
|
+
shadowSide?: 0 | 1 | 2 | undefined;
|
|
214
|
+
toneMapped?: boolean | undefined | undefined;
|
|
215
|
+
transparent?: boolean | undefined | undefined;
|
|
218
216
|
version?: Readonly<number | undefined>;
|
|
217
|
+
alphaTest?: number | undefined | undefined;
|
|
219
218
|
onBeforeCompile?: ((parameters: THREE.WebGLProgramParametersWithUniforms, renderer: THREE.WebGLRenderer) => void) | Readonly<((parameters: THREE.WebGLProgramParametersWithUniforms, renderer: THREE.WebGLRenderer) => void) | undefined>;
|
|
220
219
|
customProgramCacheKey?: (() => string) | Readonly<(() => string) | undefined>;
|
|
221
220
|
needsUpdate?: Readonly<boolean | undefined>;
|
|
222
221
|
onBuild?: ((object: THREE.Object3D, parameters: THREE.WebGLProgramParametersWithUniforms, renderer: THREE.WebGLRenderer) => void) | Readonly<((object: THREE.Object3D, parameters: THREE.WebGLProgramParametersWithUniforms, renderer: THREE.WebGLRenderer) => void) | undefined>;
|
|
222
|
+
format?: THREE.PixelFormat | undefined;
|
|
223
223
|
lineWidth: number;
|
|
224
224
|
}>;
|
|
225
225
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsCatmullRomLine, never>;
|
|
@@ -116,57 +116,6 @@ export declare class NgtsEdges {
|
|
|
116
116
|
}[T]) => void)>)) | undefined;
|
|
117
117
|
dispose?: (((() => void) | Readonly<() => void> | null) & (((() => void) & (() => void)) | Readonly<(() => void) & (() => void)>)) | undefined;
|
|
118
118
|
__ngt_args__?: (([geometry?: THREE.BufferGeometry<THREE.NormalBufferAttributes> | undefined, material?: THREE.Material | THREE.Material[] | undefined] | readonly [geometry?: THREE.BufferGeometry<THREE.NormalBufferAttributes> | undefined, material?: THREE.Material | THREE.Material[] | undefined]) & (([geometry?: import("three-stdlib").LineGeometry | undefined, material?: import("three-stdlib").LineMaterial | undefined] | readonly [geometry?: import("three-stdlib").LineGeometry | undefined, material?: import("three-stdlib").LineMaterial | undefined]) & ([parameters?: LineMaterialParameters | undefined] | readonly [parameters?: LineMaterialParameters | undefined]))) | undefined;
|
|
119
|
-
color?: THREE.ColorRepresentation | undefined;
|
|
120
|
-
alphaToCoverage?: boolean | undefined | undefined;
|
|
121
|
-
dashed?: boolean | undefined | undefined;
|
|
122
|
-
dashScale?: number | undefined | undefined;
|
|
123
|
-
dashSize?: number | undefined | undefined;
|
|
124
|
-
dashOffset?: number | undefined | undefined;
|
|
125
|
-
gapSize?: number | undefined | undefined;
|
|
126
|
-
linewidth?: number | undefined | undefined;
|
|
127
|
-
resolution?: (THREE.Vector2 & (number | THREE.Vector2 | [x: number, y: number] | Readonly<THREE.Vector2> | readonly [x: number, y: number])) | undefined;
|
|
128
|
-
wireframe?: boolean | undefined | undefined;
|
|
129
|
-
worldUnits?: boolean | undefined | undefined;
|
|
130
|
-
alphaHash?: boolean | undefined | undefined;
|
|
131
|
-
alphaTest?: number | undefined | undefined;
|
|
132
|
-
blendAlpha?: number | undefined | undefined;
|
|
133
|
-
blendColor?: (THREE.ColorRepresentation & (string | number | THREE.Color | [r: number, g: number, b: number] | [color: THREE.ColorRepresentation] | Readonly<THREE.Color> | readonly [r: number, g: number, b: number] | readonly [color: THREE.ColorRepresentation])) | undefined;
|
|
134
|
-
blendDst?: 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 211 | 212 | 213 | 214 | undefined;
|
|
135
|
-
blendDstAlpha?: number | undefined | undefined;
|
|
136
|
-
blendEquation?: 100 | 101 | 102 | 103 | 104 | undefined;
|
|
137
|
-
blendEquationAlpha?: number | undefined | undefined;
|
|
138
|
-
blending?: 0 | 1 | 2 | 3 | 4 | 5 | undefined;
|
|
139
|
-
blendSrc?: 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | undefined;
|
|
140
|
-
blendSrcAlpha?: number | undefined | undefined;
|
|
141
|
-
clipIntersection?: boolean | undefined | undefined;
|
|
142
|
-
clippingPlanes?: THREE.Plane[] | (THREE.Plane[] & readonly THREE.Plane[]) | undefined;
|
|
143
|
-
clipShadows?: boolean | undefined | undefined;
|
|
144
|
-
colorWrite?: boolean | undefined | undefined;
|
|
145
|
-
defines?: any;
|
|
146
|
-
depthFunc?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | undefined;
|
|
147
|
-
depthTest?: boolean | undefined | undefined;
|
|
148
|
-
depthWrite?: boolean | undefined | undefined;
|
|
149
|
-
opacity?: number | undefined | undefined;
|
|
150
|
-
polygonOffset?: boolean | undefined | undefined;
|
|
151
|
-
polygonOffsetFactor?: number | undefined | undefined;
|
|
152
|
-
polygonOffsetUnits?: number | undefined | undefined;
|
|
153
|
-
precision?: "highp" | "mediump" | "lowp" | null | undefined | undefined;
|
|
154
|
-
premultipliedAlpha?: boolean | undefined | undefined;
|
|
155
|
-
forceSinglePass?: boolean | undefined | undefined;
|
|
156
|
-
dithering?: boolean | undefined | undefined;
|
|
157
|
-
side?: 0 | 1 | 2 | undefined;
|
|
158
|
-
shadowSide?: 0 | 1 | 2 | undefined;
|
|
159
|
-
toneMapped?: boolean | undefined | undefined;
|
|
160
|
-
transparent?: boolean | undefined | undefined;
|
|
161
|
-
format?: THREE.PixelFormat | undefined;
|
|
162
|
-
stencilWrite?: boolean | undefined | undefined;
|
|
163
|
-
stencilFunc?: 512 | 513 | 514 | 515 | 516 | 517 | 518 | 519 | undefined;
|
|
164
|
-
stencilRef?: number | undefined | undefined;
|
|
165
|
-
stencilWriteMask?: number | undefined | undefined;
|
|
166
|
-
stencilFuncMask?: number | undefined | undefined;
|
|
167
|
-
stencilFail?: 0 | 7680 | 7681 | 7682 | 7283 | 34055 | 34056 | 5386 | undefined;
|
|
168
|
-
stencilZFail?: 0 | 7680 | 7681 | 7682 | 7283 | 34055 | 34056 | 5386 | undefined;
|
|
169
|
-
stencilZPass?: 0 | 7680 | 7681 | 7682 | 7283 | 34055 | 34056 | 5386 | undefined;
|
|
170
119
|
material?: ((THREE.Material | THREE.Material[] | Readonly<THREE.Material> | readonly THREE.Material[]) & (import("three-stdlib").LineMaterial | Readonly<import("three-stdlib").LineMaterial>)) | undefined;
|
|
171
120
|
isLine2?: Readonly<true | undefined>;
|
|
172
121
|
isLineSegments2?: Readonly<true | undefined>;
|
|
@@ -180,8 +129,20 @@ export declare class NgtsEdges {
|
|
|
180
129
|
} | undefined>;
|
|
181
130
|
updateMorphTargets?: (() => void) | Readonly<(() => void) | undefined>;
|
|
182
131
|
getVertexPosition?: ((index: number, target: THREE.Vector3) => THREE.Vector3) | Readonly<((index: number, target: THREE.Vector3) => THREE.Vector3) | undefined>;
|
|
132
|
+
color?: THREE.ColorRepresentation | undefined;
|
|
133
|
+
dashed?: boolean | undefined | undefined;
|
|
134
|
+
dashScale?: number | undefined | undefined;
|
|
135
|
+
dashSize?: number | undefined | undefined;
|
|
136
|
+
dashOffset?: number | undefined | undefined;
|
|
137
|
+
gapSize?: number | undefined | undefined;
|
|
138
|
+
opacity?: number | undefined | undefined;
|
|
183
139
|
isLineMaterial?: Readonly<true | undefined>;
|
|
140
|
+
linewidth?: number | undefined | undefined;
|
|
141
|
+
resolution?: (THREE.Vector2 & (number | THREE.Vector2 | [x: number, y: number] | Readonly<THREE.Vector2> | readonly [x: number, y: number])) | undefined;
|
|
142
|
+
alphaToCoverage?: boolean | undefined | undefined;
|
|
143
|
+
worldUnits?: boolean | undefined | undefined;
|
|
184
144
|
isShaderMaterial?: Readonly<true | undefined>;
|
|
145
|
+
defines?: any;
|
|
185
146
|
uniforms?: {
|
|
186
147
|
[uniform: string]: THREE.IUniform<any>;
|
|
187
148
|
} | Readonly<{
|
|
@@ -190,6 +151,7 @@ export declare class NgtsEdges {
|
|
|
190
151
|
uniformsGroups?: THREE.UniformsGroup[] | Readonly<THREE.UniformsGroup[] | undefined>;
|
|
191
152
|
vertexShader?: Readonly<string | undefined>;
|
|
192
153
|
fragmentShader?: Readonly<string | undefined>;
|
|
154
|
+
wireframe?: boolean | undefined | undefined;
|
|
193
155
|
wireframeLinewidth?: Readonly<number | undefined>;
|
|
194
156
|
fog?: Readonly<boolean | undefined>;
|
|
195
157
|
lights?: Readonly<boolean | undefined>;
|
|
@@ -207,11 +169,49 @@ export declare class NgtsEdges {
|
|
|
207
169
|
glslVersion?: "100" | "300 es" | null | undefined;
|
|
208
170
|
setValues?: ((parameters: THREE.ShaderMaterialParameters) => void) | Readonly<((parameters: THREE.ShaderMaterialParameters) => void) | undefined>;
|
|
209
171
|
isMaterial?: Readonly<true | undefined>;
|
|
172
|
+
alphaHash?: boolean | undefined | undefined;
|
|
173
|
+
blendAlpha?: number | undefined | undefined;
|
|
174
|
+
blendColor?: (THREE.ColorRepresentation & (string | number | THREE.Color | [r: number, g: number, b: number] | [color: THREE.ColorRepresentation] | Readonly<THREE.Color> | readonly [r: number, g: number, b: number] | readonly [color: THREE.ColorRepresentation])) | undefined;
|
|
175
|
+
blendDst?: 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 211 | 212 | 213 | 214 | undefined;
|
|
176
|
+
blendDstAlpha?: number | undefined | undefined;
|
|
177
|
+
blendEquation?: 100 | 101 | 102 | 103 | 104 | undefined;
|
|
178
|
+
blendEquationAlpha?: number | undefined | undefined;
|
|
179
|
+
blending?: 0 | 1 | 2 | 3 | 4 | 5 | undefined;
|
|
180
|
+
blendSrc?: 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | undefined;
|
|
181
|
+
blendSrcAlpha?: number | undefined | undefined;
|
|
182
|
+
clipIntersection?: boolean | undefined | undefined;
|
|
183
|
+
clippingPlanes?: THREE.Plane[] | (THREE.Plane[] & readonly THREE.Plane[]) | undefined;
|
|
184
|
+
clipShadows?: boolean | undefined | undefined;
|
|
185
|
+
colorWrite?: boolean | undefined | undefined;
|
|
186
|
+
depthFunc?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | undefined;
|
|
187
|
+
depthTest?: boolean | undefined | undefined;
|
|
188
|
+
depthWrite?: boolean | undefined | undefined;
|
|
189
|
+
stencilWrite?: boolean | undefined | undefined;
|
|
190
|
+
stencilFunc?: 512 | 513 | 514 | 515 | 516 | 517 | 518 | 519 | undefined;
|
|
191
|
+
stencilRef?: number | undefined | undefined;
|
|
192
|
+
stencilWriteMask?: number | undefined | undefined;
|
|
193
|
+
stencilFuncMask?: number | undefined | undefined;
|
|
194
|
+
stencilFail?: 0 | 7680 | 7681 | 7682 | 7283 | 34055 | 34056 | 5386 | undefined;
|
|
195
|
+
stencilZFail?: 0 | 7680 | 7681 | 7682 | 7283 | 34055 | 34056 | 5386 | undefined;
|
|
196
|
+
stencilZPass?: 0 | 7680 | 7681 | 7682 | 7283 | 34055 | 34056 | 5386 | undefined;
|
|
197
|
+
polygonOffset?: boolean | undefined | undefined;
|
|
198
|
+
polygonOffsetFactor?: number | undefined | undefined;
|
|
199
|
+
polygonOffsetUnits?: number | undefined | undefined;
|
|
200
|
+
precision?: "highp" | "mediump" | "lowp" | null | undefined | undefined;
|
|
201
|
+
premultipliedAlpha?: boolean | undefined | undefined;
|
|
202
|
+
forceSinglePass?: boolean | undefined | undefined;
|
|
203
|
+
dithering?: boolean | undefined | undefined;
|
|
204
|
+
side?: 0 | 1 | 2 | undefined;
|
|
205
|
+
shadowSide?: 0 | 1 | 2 | undefined;
|
|
206
|
+
toneMapped?: boolean | undefined | undefined;
|
|
207
|
+
transparent?: boolean | undefined | undefined;
|
|
210
208
|
version?: Readonly<number | undefined>;
|
|
209
|
+
alphaTest?: number | undefined | undefined;
|
|
211
210
|
onBeforeCompile?: ((parameters: THREE.WebGLProgramParametersWithUniforms, renderer: THREE.WebGLRenderer) => void) | Readonly<((parameters: THREE.WebGLProgramParametersWithUniforms, renderer: THREE.WebGLRenderer) => void) | undefined>;
|
|
212
211
|
customProgramCacheKey?: (() => string) | Readonly<(() => string) | undefined>;
|
|
213
212
|
needsUpdate?: Readonly<boolean | undefined>;
|
|
214
213
|
onBuild?: ((object: THREE.Object3D, parameters: THREE.WebGLProgramParametersWithUniforms, renderer: THREE.WebGLRenderer) => void) | Readonly<((object: THREE.Object3D, parameters: THREE.WebGLProgramParametersWithUniforms, renderer: THREE.WebGLRenderer) => void) | undefined>;
|
|
214
|
+
format?: THREE.PixelFormat | undefined;
|
|
215
215
|
lineWidth?: number | undefined;
|
|
216
216
|
}>;
|
|
217
217
|
protected tmpPoints: number[];
|
|
@@ -18,7 +18,7 @@ export type NgtsLineOptions = Omit<LineMaterialParameters, 'vertexColors' | 'col
|
|
|
18
18
|
export declare class NgtsLine {
|
|
19
19
|
points: import("@angular/core").InputSignal<(number | THREE.Vector2 | THREE.Vector3 | [number, number, number] | [number, number])[]>;
|
|
20
20
|
options: import("@angular/core").InputSignalWithTransform<NgtsLineOptions, "" | Partial<NgtsLineOptions>>;
|
|
21
|
-
protected parameters: import("@angular/core").Signal<Omit<NgtsLineOptions, "
|
|
21
|
+
protected parameters: import("@angular/core").Signal<Omit<NgtsLineOptions, "color" | "dashed" | "linewidth" | "vertexColors" | "lineWidth" | "segments">>;
|
|
22
22
|
lineRef: import("@angular/core").Signal<ElementRef<Line2 | LineSegments2> | undefined>;
|
|
23
23
|
private store;
|
|
24
24
|
private segments;
|
|
@@ -37,7 +37,7 @@ export interface NgtsTextOptions extends Partial<NgtThreeElements['ngt-mesh']> {
|
|
|
37
37
|
export declare class NgtsText {
|
|
38
38
|
text: import("@angular/core").InputSignal<string>;
|
|
39
39
|
options: import("@angular/core").InputSignalWithTransform<NgtsTextOptions, "" | Partial<NgtsTextOptions>>;
|
|
40
|
-
protected parameters: import("@angular/core").Signal<Omit<NgtsTextOptions, "
|
|
40
|
+
protected parameters: import("@angular/core").Signal<Omit<NgtsTextOptions, "characters" | "fontSize" | "font" | "anchorX" | "anchorY" | "sdfGlyphSize">>;
|
|
41
41
|
synced: import("@angular/core").OutputEmitterRef<Text>;
|
|
42
42
|
private store;
|
|
43
43
|
private characters;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, computed, effect, Component, CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionStrategy, inject, DestroyRef,
|
|
2
|
+
import { input, computed, effect, Component, CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionStrategy, inject, DestroyRef, Directive, viewChild, contentChild, TemplateRef, signal, untracked } from '@angular/core';
|
|
3
3
|
import { omit, is, pick, NgtArgs, injectBeforeRender, injectStore, getInstanceState, extend, applyProps } from 'angular-three';
|
|
4
4
|
import CustomShaderMaterial from 'three-custom-shader-material/vanilla';
|
|
5
5
|
import { MeshDistortMaterial, MeshPortalMaterial, meshPortalMaterialApplySDF, BlurPass, MeshReflectorMaterial, MeshDiscardMaterial, MeshTransmissionMaterial, MeshWobbleMaterial } from 'angular-three-soba/vanilla-exports';
|
|
@@ -121,7 +121,6 @@ class ManagePortalScene {
|
|
|
121
121
|
this.material = input.required();
|
|
122
122
|
this.priority = input.required();
|
|
123
123
|
this.worldUnits = input.required();
|
|
124
|
-
const injector = inject(Injector);
|
|
125
124
|
const renderTextureStore = injectStore();
|
|
126
125
|
const buffer1 = injectFBO();
|
|
127
126
|
const buffer2 = injectFBO();
|
|
@@ -165,56 +164,52 @@ class ManagePortalScene {
|
|
|
165
164
|
return;
|
|
166
165
|
setEvents({ enabled: events });
|
|
167
166
|
});
|
|
168
|
-
|
|
167
|
+
injectBeforeRender(({ gl, camera }) => {
|
|
168
|
+
const material = this.material();
|
|
169
|
+
const instanceState = getInstanceState(material);
|
|
170
|
+
if (!instanceState)
|
|
171
|
+
return;
|
|
172
|
+
const parent = instanceState.parent();
|
|
173
|
+
if (!parent)
|
|
174
|
+
return;
|
|
169
175
|
const priority = this.priority();
|
|
170
|
-
|
|
171
|
-
const
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
176
|
+
const materialBlend = 'blend' in material && typeof material.blend === 'number' ? material.blend : 0;
|
|
177
|
+
const [worldUnits, rootScene, scene, [quad, blend]] = [
|
|
178
|
+
this.worldUnits(),
|
|
179
|
+
this.rootScene(),
|
|
180
|
+
renderTextureStore.snapshot.scene,
|
|
181
|
+
fullScreenQuad(),
|
|
182
|
+
];
|
|
183
|
+
// Move portal contents along with the parent if worldUnits is true
|
|
184
|
+
if (!worldUnits) {
|
|
185
|
+
// If the portal renders exclusively the original scene needs to be updated
|
|
186
|
+
if (priority && materialBlend === 1)
|
|
187
|
+
parent['updateWorldMatrix'](true, false);
|
|
188
|
+
scene.matrixWorld.copy(parent['matrixWorld']);
|
|
189
|
+
}
|
|
190
|
+
else {
|
|
191
|
+
scene.matrixWorld.identity();
|
|
192
|
+
}
|
|
193
|
+
// This bit is only necessary if the portal is blended, now it has a render-priority
|
|
194
|
+
// and will take over the render loop
|
|
195
|
+
if (priority) {
|
|
196
|
+
if (materialBlend > 0 && materialBlend < 1) {
|
|
197
|
+
// If blend is ongoing (> 0 and < 1) then we need to render both the root scene
|
|
198
|
+
// and the portal scene, both will then be mixed in the quad from above
|
|
199
|
+
blend.value = materialBlend;
|
|
200
|
+
gl.setRenderTarget(buffer1());
|
|
201
|
+
gl.render(scene, camera);
|
|
202
|
+
gl.setRenderTarget(buffer2());
|
|
203
|
+
gl.render(rootScene, camera);
|
|
204
|
+
gl.setRenderTarget(null);
|
|
205
|
+
quad.render(gl);
|
|
195
206
|
}
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
if (materialBlend > 0 && materialBlend < 1) {
|
|
200
|
-
// If blend is ongoing (> 0 and < 1) then we need to render both the root scene
|
|
201
|
-
// and the portal scene, both will then be mixed in the quad from above
|
|
202
|
-
blend.value = materialBlend;
|
|
203
|
-
gl.setRenderTarget(buffer1());
|
|
204
|
-
gl.render(scene, camera);
|
|
205
|
-
gl.setRenderTarget(buffer2());
|
|
206
|
-
gl.render(rootScene, camera);
|
|
207
|
-
gl.setRenderTarget(null);
|
|
208
|
-
quad.render(gl);
|
|
209
|
-
}
|
|
210
|
-
else if (materialBlend === 1) {
|
|
211
|
-
// However if blend is 1 we only need to render the portal scene
|
|
212
|
-
gl.render(scene, camera);
|
|
213
|
-
}
|
|
207
|
+
else if (materialBlend === 1) {
|
|
208
|
+
// However if blend is 1 we only need to render the portal scene
|
|
209
|
+
gl.render(scene, camera);
|
|
214
210
|
}
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
});
|
|
211
|
+
}
|
|
212
|
+
}, { priority: this.priority });
|
|
218
213
|
}
|
|
219
214
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: ManagePortalScene, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
220
215
|
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.1.4", type: ManagePortalScene, isStandalone: true, selector: "ngts-manage-portal-scene", inputs: { events: { classPropertyName: "events", publicName: "events", isSignal: true, isRequired: false, transformFunction: null }, rootScene: { classPropertyName: "rootScene", publicName: "rootScene", isSignal: true, isRequired: true, transformFunction: null }, material: { classPropertyName: "material", publicName: "material", isSignal: true, isRequired: true, transformFunction: null }, priority: { classPropertyName: "priority", publicName: "priority", isSignal: true, isRequired: true, transformFunction: null }, worldUnits: { classPropertyName: "worldUnits", publicName: "worldUnits", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 }); }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"angular-three-soba-materials.mjs","sources":["../../../../libs/soba/materials/src/lib/custom-shader-material.ts","../../../../libs/soba/materials/src/lib/mesh-distort-material.ts","../../../../libs/soba/materials/src/lib/mesh-portal-material.ts","../../../../libs/soba/materials/src/lib/mesh-reflector-material.ts","../../../../libs/soba/materials/src/lib/mesh-refraction-material.ts","../../../../libs/soba/materials/src/lib/mesh-transmission-material.ts","../../../../libs/soba/materials/src/lib/mesh-wobble-material.ts","../../../../libs/soba/materials/src/lib/point-material.ts","../../../../libs/soba/materials/src/angular-three-soba-materials.ts"],"sourcesContent":["import {\n\tChangeDetectionStrategy,\n\tComponent,\n\tcomputed,\n\tCUSTOM_ELEMENTS_SCHEMA,\n\teffect,\n\tElementRef,\n\tinput,\n} from '@angular/core';\nimport { is, NgtAnyRecord, NgtArgs, NgtAttachable, omit, pick } from 'angular-three';\nimport * as THREE from 'three';\nimport CustomShaderMaterial from 'three-custom-shader-material/vanilla';\n\n@Component({\n\tselector: 'ngts-custom-shader-material',\n\ttemplate: `\n\t\t<ngt-primitive *args=\"[material()]\" [attach]=\"attach()\" [parameters]=\"parameters()\">\n\t\t\t<ng-content />\n\t\t</ngt-primitive>\n\t`,\n\tschemas: [CUSTOM_ELEMENTS_SCHEMA],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\timports: [NgtArgs],\n})\nexport class NgtsCustomShaderMaterial {\n\tbaseMaterial = input.required<THREE.Material | typeof THREE.Material | ElementRef<THREE.Material>>();\n\tattach = input<NgtAttachable>('material');\n\toptions = input({} as Omit<ConstructorParameters<typeof CustomShaderMaterial>[0], 'baseMaterial'>);\n\tparameters = omit(this.options, ['fragmentShader', 'vertexShader', 'uniforms', 'cacheKey']);\n\n\tprivate base = computed(() => {\n\t\tconst baseMaterial = this.baseMaterial();\n\t\treturn is.ref(baseMaterial) ? baseMaterial.nativeElement : baseMaterial;\n\t});\n\n\tprivate fragmentShader = pick(this.options, 'fragmentShader');\n\tprivate vertexShader = pick(this.options, 'vertexShader');\n\tprivate uniforms = pick(this.options, 'uniforms');\n\tprivate cacheKey = pick(this.options, 'cacheKey');\n\n\tmaterial = computed(() => {\n\t\tconst [base, fragmentShader, vertexShader, uniforms, cacheKey] = [\n\t\t\tthis.base(),\n\t\t\tthis.fragmentShader(),\n\t\t\tthis.vertexShader(),\n\t\t\tthis.uniforms(),\n\t\t\tthis.cacheKey(),\n\t\t];\n\n\t\t// NOTE: this is specific to angular-three\n\t\tif (is.instance(base)) {\n\t\t\tdelete (base as NgtAnyRecord)['__ngt__'];\n\t\t\tdelete (base as NgtAnyRecord)['__ngt_renderer__'];\n\t\t}\n\n\t\treturn new CustomShaderMaterial({\n\t\t\tbaseMaterial: base,\n\t\t\tfragmentShader,\n\t\t\tvertexShader,\n\t\t\tuniforms,\n\t\t\tcacheKey,\n\t\t});\n\t});\n\n\tconstructor() {\n\t\teffect((onCleanup) => {\n\t\t\tconst material = this.material();\n\t\t\tonCleanup(() => material.dispose());\n\t\t});\n\t}\n}\n","import { ChangeDetectionStrategy, Component, CUSTOM_ELEMENTS_SCHEMA, DestroyRef, inject, input } from '@angular/core';\nimport { injectBeforeRender, NgtArgs, NgtAttachable, NgtThreeElements, omit, pick } from 'angular-three';\nimport { MeshDistortMaterial, MeshDistortMaterialParameters } from 'angular-three-soba/vanilla-exports';\nimport { mergeInputs } from 'ngxtension/inject-inputs';\n\nexport interface NgtsMeshDistortMaterialOptions\n\textends Partial<MeshDistortMaterialParameters>,\n\t\tPartial<NgtThreeElements['ngt-mesh-physical-material']> {\n\tspeed: number;\n\tfactor?: number;\n}\n\nconst defaultOptions: NgtsMeshDistortMaterialOptions = {\n\tspeed: 1,\n};\n\n@Component({\n\tselector: 'ngts-mesh-distort-material',\n\ttemplate: `\n\t\t<ngt-primitive *args=\"[material]\" [attach]=\"attach()\" [parameters]=\"parameters()\">\n\t\t\t<ng-content />\n\t\t</ngt-primitive>\n\t`,\n\tschemas: [CUSTOM_ELEMENTS_SCHEMA],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\timports: [NgtArgs],\n})\nexport class NgtsMeshDistortMaterial {\n\tattach = input<NgtAttachable>('material');\n\toptions = input(defaultOptions, { transform: mergeInputs(defaultOptions) });\n\tprotected parameters = omit(this.options, ['speed']);\n\n\tmaterial = new MeshDistortMaterial();\n\n\tprivate speed = pick(this.options, 'speed');\n\n\tconstructor() {\n\t\tinject(DestroyRef).onDestroy(() => this.material.dispose());\n\n\t\tinjectBeforeRender(({ clock }) => {\n\t\t\tthis.material.time = clock.getElapsedTime() * this.speed();\n\t\t});\n\t}\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n\tChangeDetectionStrategy,\n\tComponent,\n\tcomputed,\n\tcontentChild,\n\tCUSTOM_ELEMENTS_SCHEMA,\n\tDirective,\n\teffect,\n\tElementRef,\n\tinject,\n\tInjector,\n\tinput,\n\tsignal,\n\tTemplateRef,\n\tviewChild,\n} from '@angular/core';\nimport {\n\textend,\n\tgetInstanceState,\n\tinjectBeforeRender,\n\tinjectStore,\n\tis,\n\tNgtAttachable,\n\tNgtComputeFunction,\n\tNgtThreeElements,\n\tomit,\n\tpick,\n} from 'angular-three';\nimport { getVersion, injectFBO, injectIntersect } from 'angular-three-soba/misc';\nimport { NgtsRenderTexture, NgtsRenderTextureContent } from 'angular-three-soba/staging';\nimport {\n\tMeshPortalMaterial,\n\tmeshPortalMaterialApplySDF,\n\tNgtMeshPortalMaterial,\n} from 'angular-three-soba/vanilla-exports';\nimport { mergeInputs } from 'ngxtension/inject-inputs';\nimport * as THREE from 'three';\nimport { FullScreenQuad } from 'three-stdlib';\n\n/**\n * This directive is used inside of the render texture, hence has access to the render texture store (a portal store)\n */\n@Directive({ selector: 'ngts-manage-portal-scene' })\nexport class ManagePortalScene {\n\tevents = input<boolean>();\n\trootScene = input.required<THREE.Scene>();\n\tmaterial = input.required<NgtMeshPortalMaterial>();\n\tpriority = input.required<number>();\n\tworldUnits = input.required<boolean>();\n\n\tconstructor() {\n\t\tconst injector = inject(Injector);\n\t\tconst renderTextureStore = injectStore();\n\n\t\tconst buffer1 = injectFBO();\n\t\tconst buffer2 = injectFBO();\n\n\t\tconst fullScreenQuad = computed(() => {\n\t\t\t// This fullscreen-quad is used to blend the two textures\n\t\t\tconst blend = { value: 0 };\n\t\t\tconst quad = new FullScreenQuad(\n\t\t\t\tnew THREE.ShaderMaterial({\n\t\t\t\t\tuniforms: {\n\t\t\t\t\t\ta: { value: buffer1().texture },\n\t\t\t\t\t\tb: { value: buffer2().texture },\n\t\t\t\t\t\tblend,\n\t\t\t\t\t},\n\t\t\t\t\tvertexShader: /*glsl*/ `\n\t\t varying vec2 vUv;\n\t\t void main() {\n\t\t vUv = uv;\n\t\t gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\t\t }`,\n\t\t\t\t\tfragmentShader: /*glsl*/ `\n\t\t uniform sampler2D a;\n\t\t uniform sampler2D b;\n\t\t uniform float blend;\n\t\t varying vec2 vUv;\n\t\t #include <packing>\n\t\t void main() {\n\t\t vec4 ta = texture2D(a, vUv);\n\t\t vec4 tb = texture2D(b, vUv);\n\t\t gl_FragColor = mix(tb, ta, blend);\n\t\t #include <tonemapping_fragment>\n\t\t #include <${getVersion() >= 154 ? 'colorspace_fragment' : 'encodings_fragment'}>\n\t\t }`,\n\t\t\t\t}),\n\t\t\t);\n\t\t\treturn [quad, blend] as const;\n\t\t});\n\n\t\teffect(() => {\n\t\t\trenderTextureStore.scene().matrixAutoUpdate = false;\n\t\t});\n\n\t\teffect(() => {\n\t\t\tconst [events, setEvents] = [this.events(), renderTextureStore.setEvents()];\n\t\t\tif (!events) return;\n\t\t\tsetEvents({ enabled: events });\n\t\t});\n\n\t\teffect((onCleanup) => {\n\t\t\tconst priority = this.priority();\n\n\t\t\t// we start the before render in effect because we need the priority input to be resolved\n\t\t\tconst sub = injectBeforeRender(\n\t\t\t\t({ gl, camera }) => {\n\t\t\t\t\tconst material = this.material();\n\n\t\t\t\t\tconst instanceState = getInstanceState(material);\n\t\t\t\t\tif (!instanceState) return;\n\n\t\t\t\t\tconst parent = instanceState.parent();\n\t\t\t\t\tif (!parent) return;\n\n\t\t\t\t\tconst materialBlend = 'blend' in material && typeof material.blend === 'number' ? material.blend : 0;\n\t\t\t\t\tconst [worldUnits, rootScene, scene, [quad, blend]] = [\n\t\t\t\t\t\tthis.worldUnits(),\n\t\t\t\t\t\tthis.rootScene(),\n\t\t\t\t\t\trenderTextureStore.snapshot.scene,\n\t\t\t\t\t\tfullScreenQuad(),\n\t\t\t\t\t];\n\t\t\t\t\t// Move portal contents along with the parent if worldUnits is true\n\t\t\t\t\tif (!worldUnits) {\n\t\t\t\t\t\t// If the portal renders exclusively the original scene needs to be updated\n\t\t\t\t\t\tif (priority && materialBlend === 1) parent['updateWorldMatrix'](true, false);\n\t\t\t\t\t\tscene.matrixWorld.copy(parent['matrixWorld']);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tscene.matrixWorld.identity();\n\t\t\t\t\t}\n\n\t\t\t\t\t// This bit is only necessary if the portal is blended, now it has a render-priority\n\t\t\t\t\t// and will take over the render loop\n\t\t\t\t\tif (priority) {\n\t\t\t\t\t\tif (materialBlend > 0 && materialBlend < 1) {\n\t\t\t\t\t\t\t// If blend is ongoing (> 0 and < 1) then we need to render both the root scene\n\t\t\t\t\t\t\t// and the portal scene, both will then be mixed in the quad from above\n\t\t\t\t\t\t\tblend.value = materialBlend;\n\t\t\t\t\t\t\tgl.setRenderTarget(buffer1());\n\t\t\t\t\t\t\tgl.render(scene, camera);\n\t\t\t\t\t\t\tgl.setRenderTarget(buffer2());\n\t\t\t\t\t\t\tgl.render(rootScene, camera);\n\t\t\t\t\t\t\tgl.setRenderTarget(null);\n\t\t\t\t\t\t\tquad.render(gl);\n\t\t\t\t\t\t} else if (materialBlend === 1) {\n\t\t\t\t\t\t\t// However if blend is 1 we only need to render the portal scene\n\t\t\t\t\t\t\tgl.render(scene, camera);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{ injector, priority },\n\t\t\t);\n\t\t\tonCleanup(() => sub());\n\t\t});\n\t}\n}\n\nexport interface NgtsMeshPortalMaterialOptions extends Partial<NgtThreeElements['ngt-shader-material']> {\n\t/** Mix the portals own scene with the world scene, 0 = world scene render,\n\t * 0.5 = both scenes render, 1 = portal scene renders, defaults to 0. */\n\tblend: number;\n\t/** Edge fade blur, 0 = no blur (default) */\n\tblur: number;\n\t/** SDF resolution, the smaller the faster is the start-up time (default: 512) */\n\tresolution: number;\n\t/** By default portals use relative coordinates, contents are affects by the local matrix transform */\n\tworldUnits: boolean;\n\t/** Optional event priority, defaults to 0 */\n\teventPriority: number;\n\t/** Optional render priority, defaults to 0 */\n\trenderPriority: number;\n\t/** Optionally diable events inside the portal, defaults to false */\n\tevents: boolean;\n}\n\nconst defaultOptions: NgtsMeshPortalMaterialOptions = {\n\tblend: 0,\n\tblur: 0,\n\tresolution: 512,\n\tworldUnits: false,\n\teventPriority: 0,\n\trenderPriority: 0,\n\tevents: false,\n};\n\n@Component({\n\tselector: 'ngts-mesh-portal-material',\n\ttemplate: `\n\t\t<ngt-mesh-portal-material\n\t\t\t#material\n\t\t\t[attach]=\"attach()\"\n\t\t\t[blur]=\"blur()\"\n\t\t\t[blend]=\"0\"\n\t\t\t[resolution]=\"materialResolution()\"\n\t\t\t[parameters]=\"parameters()\"\n\t\t>\n\t\t\t<ngts-render-texture\n\t\t\t\t[options]=\"{\n\t\t\t\t\tframes: renderTextureFrames(),\n\t\t\t\t\teventPriority: eventPriority(),\n\t\t\t\t\trenderPriority: renderPriority(),\n\t\t\t\t\tcompute: renderTextureCompute,\n\t\t\t\t}\"\n\t\t\t>\n\t\t\t\t<ng-template renderTextureContent let-injector=\"injector\">\n\t\t\t\t\t<ng-container [ngTemplateOutlet]=\"content()\" [ngTemplateOutletInjector]=\"injector\" />\n\t\t\t\t\t<ngts-manage-portal-scene\n\t\t\t\t\t\t[events]=\"events()\"\n\t\t\t\t\t\t[rootScene]=\"rootScene()\"\n\t\t\t\t\t\t[priority]=\"priority()\"\n\t\t\t\t\t\t[material]=\"material\"\n\t\t\t\t\t\t[worldUnits]=\"worldUnits()\"\n\t\t\t\t\t/>\n\t\t\t\t</ng-template>\n\t\t\t</ngts-render-texture>\n\t\t</ngt-mesh-portal-material>\n\t`,\n\tschemas: [CUSTOM_ELEMENTS_SCHEMA],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\timports: [NgtsRenderTexture, NgtsRenderTextureContent, ManagePortalScene, NgTemplateOutlet],\n})\nexport class NgtsMeshPortalMaterial {\n\tattach = input<NgtAttachable>('material');\n\toptions = input(defaultOptions, { transform: mergeInputs(defaultOptions) });\n\tprotected parameters = omit(this.options, [\n\t\t'blur',\n\t\t'resolution',\n\t\t'worldUnits',\n\t\t'eventPriority',\n\t\t'renderPriority',\n\t\t'events',\n\t]);\n\n\tprotected blur = pick(this.options, 'blur');\n\tprotected eventPriority = pick(this.options, 'eventPriority');\n\tprotected renderPriority = pick(this.options, 'renderPriority');\n\tprotected events = pick(this.options, 'events');\n\tprotected worldUnits = pick(this.options, 'worldUnits');\n\n\tmaterialRef = viewChild.required<ElementRef<InstanceType<typeof MeshPortalMaterial>>>('material');\n\tprotected content = contentChild.required(TemplateRef);\n\n\tprivate store = injectStore();\n\tprotected rootScene = this.store.scene;\n\n\tprotected materialResolution = computed(() => [\n\t\tthis.store.size.width() * this.store.viewport.dpr(),\n\t\tthis.store.size.height() * this.store.viewport.dpr(),\n\t]);\n\tprivate resolution = pick(this.options, 'resolution');\n\n\tprivate parent = signal<THREE.Mesh | null>(null);\n\tprivate visible = injectIntersect(this.parent, { source: signal(true) });\n\n\tprotected renderTextureFrames = computed(() => (this.visible() ? Infinity : 0));\n\n\tprotected renderTextureCompute = (...args: Parameters<NgtComputeFunction>) => {\n\t\tconst [parent, material] = [this.parent(), this.materialRef().nativeElement];\n\t\tif (!parent) return false;\n\n\t\tconst [event, state] = args;\n\n\t\tstate.snapshot.pointer.set(\n\t\t\t(event.offsetX / state.snapshot.size.width) * 2 - 1,\n\t\t\t-(event.offsetY / state.snapshot.size.height) * 2 + 1,\n\t\t);\n\t\tstate.snapshot.raycaster.setFromCamera(state.snapshot.pointer, state.snapshot.camera);\n\n\t\tif ('blend' in material && material.blend === 0) {\n\t\t\t// We run a quick check against the parent, if it isn't hit there's no need to raycast at all\n\t\t\tconst [intersection] = state.snapshot.raycaster.intersectObject(parent);\n\t\t\tif (!intersection) {\n\t\t\t\t// Cancel out the raycast camera if the parent mesh isn't hit\n\t\t\t\tObject.assign(state.snapshot.raycaster, { camera: undefined });\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn;\n\t};\n\n\tprotected priority = signal(0);\n\n\tconstructor() {\n\t\textend({ MeshPortalMaterial });\n\n\t\teffect(() => {\n\t\t\tconst material = this.materialRef().nativeElement;\n\n\t\t\tconst instanceState = getInstanceState(material);\n\t\t\tif (!instanceState) return;\n\n\t\t\tconst materialParent = instanceState.parent();\n\t\t\tif (!materialParent || !is.three<THREE.Mesh>(materialParent, 'isMesh')) return;\n\n\t\t\t// Since the ref above is not tied to a mesh directly (we're inside a material),\n\t\t\t// it has to be tied to the parent mesh here\n\t\t\tthis.parent.set(materialParent);\n\t\t});\n\n\t\teffect(() => {\n\t\t\tconst events = this.events();\n\t\t\tif (!events) return;\n\n\t\t\tconst setEvents = this.store.setEvents();\n\t\t\tsetEvents({ enabled: !events });\n\t\t});\n\n\t\teffect(() => {\n\t\t\tconst [material, parent] = [this.materialRef().nativeElement, this.parent()];\n\t\t\tif (!parent) return;\n\n\t\t\tconst [resolution, blur, gl] = [this.resolution(), this.blur(), this.store.gl()];\n\n\t\t\t// apply the SDF mask once\n\t\t\tif (blur && material.sdf == null) {\n\t\t\t\tmeshPortalMaterialApplySDF(parent, resolution, gl);\n\t\t\t}\n\t\t});\n\n\t\tinjectBeforeRender(() => {\n\t\t\tconst material = this.materialRef().nativeElement;\n\t\t\tconst priority =\n\t\t\t\t'blend' in material && typeof material.blend === 'number' && material.blend > 0\n\t\t\t\t\t? Math.max(1, this.renderPriority())\n\t\t\t\t\t: 0;\n\n\t\t\t// If blend is > 0 then the portal is being entered, the render-priority must change\n\t\t\tif (this.priority() !== priority) {\n\t\t\t\tthis.priority.set(priority);\n\t\t\t}\n\t\t});\n\t}\n}\n","import {\n\tChangeDetectionStrategy,\n\tComponent,\n\tcomputed,\n\tCUSTOM_ELEMENTS_SCHEMA,\n\tDestroyRef,\n\teffect,\n\tElementRef,\n\tinject,\n\tinput,\n\tuntracked,\n\tviewChild,\n} from '@angular/core';\nimport {\n\tapplyProps,\n\tgetInstanceState,\n\tinjectBeforeRender,\n\tinjectStore,\n\tNgtAnyRecord,\n\tNgtArgs,\n\tNgtAttachable,\n\tNgtThreeElements,\n\tomit,\n\tpick,\n} from 'angular-three';\nimport { BlurPass, MeshReflectorMaterial } from 'angular-three-soba/vanilla-exports';\nimport { mergeInputs } from 'ngxtension/inject-inputs';\nimport * as THREE from 'three';\n\nexport interface NgtsMeshReflectorMaterialOptions extends Partial<NgtThreeElements['ngt-mesh-standard-material']> {\n\tresolution: number;\n\tmixBlur: number;\n\tmixStrength: number;\n\tblur: [number, number] | number;\n\tmirror: number;\n\tminDepthThreshold: number;\n\tmaxDepthThreshold: number;\n\tdepthScale: number;\n\tdepthToBlurRatioBias: number;\n\tdistortion: number;\n\tmixContrast: number;\n\treflectorOffset: number;\n\tdistortionMap?: THREE.Texture;\n}\n\nconst defaultOptions: NgtsMeshReflectorMaterialOptions = {\n\tmixBlur: 0,\n\tmixStrength: 1,\n\tresolution: 256,\n\tblur: [0, 0],\n\tminDepthThreshold: 0.9,\n\tmaxDepthThreshold: 1,\n\tdepthScale: 0,\n\tdepthToBlurRatioBias: 0.25,\n\tmirror: 0,\n\tdistortion: 1,\n\tmixContrast: 1,\n\treflectorOffset: 0,\n};\n\n@Component({\n\tselector: 'ngts-mesh-reflector-material',\n\ttemplate: `\n\t\t<ngt-primitive #material *args=\"[material()]\" [attach]=\"attach()\">\n\t\t\t<ng-content />\n\t\t</ngt-primitive>\n\t`,\n\tschemas: [CUSTOM_ELEMENTS_SCHEMA],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\timports: [NgtArgs],\n})\nexport class NgtsMeshReflectorMaterial {\n\tattach = input<NgtAttachable>('material');\n\toptions = input(defaultOptions, { transform: mergeInputs(defaultOptions) });\n\tprivate parameters = omit(this.options, [\n\t\t'distortionMap',\n\t\t'resolution',\n\t\t'mixBlur',\n\t\t'mixStrength',\n\t\t'blur',\n\t\t'minDepthThreshold',\n\t\t'maxDepthThreshold',\n\t\t'depthScale',\n\t\t'depthToBlurRatioBias',\n\t\t'mirror',\n\t\t'distortion',\n\t\t'mixContrast',\n\t\t'reflectorOffset',\n\t]);\n\n\tprivate store = injectStore();\n\n\tmaterialRef = viewChild<ElementRef<MeshReflectorMaterial>>('material');\n\n\tprivate reflectOptions = pick(this.options, [\n\t\t'distortionMap',\n\t\t'resolution',\n\t\t'mixBlur',\n\t\t'mixStrength',\n\t\t'blur',\n\t\t'minDepthThreshold',\n\t\t'maxDepthThreshold',\n\t\t'depthScale',\n\t\t'depthToBlurRatioBias',\n\t\t'mirror',\n\t\t'distortion',\n\t\t'mixContrast',\n\t\t'reflectorOffset',\n\t]);\n\n\tprivate blur = pick(this.reflectOptions, 'blur');\n\n\tprivate normalizedBlur = computed(() => {\n\t\tconst blur = this.blur();\n\t\treturn Array.isArray(blur) ? blur : [blur, blur];\n\t});\n\tprivate hasBlur = computed(() => this.normalizedBlur()[0] + this.normalizedBlur()[1] > 0);\n\n\tprivate reflectorPlane = new THREE.Plane();\n\tprivate normal = new THREE.Vector3();\n\tprivate reflectorWorldPosition = new THREE.Vector3();\n\tprivate cameraWorldPosition = new THREE.Vector3();\n\tprivate rotationMatrix = new THREE.Matrix4();\n\tprivate lookAtPosition = new THREE.Vector3(0, 0, -1);\n\tprivate clipPlane = new THREE.Vector4();\n\tprivate view = new THREE.Vector3();\n\tprivate target = new THREE.Vector3();\n\tprivate q = new THREE.Vector4();\n\tprivate textureMatrix = new THREE.Matrix4();\n\tprivate virtualCamera = new THREE.PerspectiveCamera();\n\n\tprivate reflectState = computed(() => {\n\t\tconst [\n\t\t\tgl,\n\t\t\t{\n\t\t\t\tresolution,\n\t\t\t\tminDepthThreshold,\n\t\t\t\tmaxDepthThreshold,\n\t\t\t\tdepthScale,\n\t\t\t\tdepthToBlurRatioBias,\n\t\t\t\tmirror,\n\t\t\t\tmixBlur,\n\t\t\t\tmixStrength,\n\t\t\t\tdistortion,\n\t\t\t\tdistortionMap,\n\t\t\t\tmixContrast,\n\t\t\t},\n\t\t\tblur,\n\t\t\thasBlur,\n\t\t] = [this.store.gl(), this.reflectOptions(), this.normalizedBlur(), this.hasBlur()];\n\n\t\tconst renderTargetParameters = {\n\t\t\tminFilter: THREE.LinearFilter,\n\t\t\tmagFilter: THREE.LinearFilter,\n\t\t\ttype: THREE.HalfFloatType,\n\t\t};\n\n\t\tconst fbo1 = new THREE.WebGLRenderTarget(resolution, resolution, renderTargetParameters);\n\t\tfbo1.depthBuffer = true;\n\t\tfbo1.depthTexture = new THREE.DepthTexture(resolution, resolution);\n\t\tfbo1.depthTexture.format = THREE.DepthFormat;\n\t\tfbo1.depthTexture.type = THREE.UnsignedShortType;\n\t\tconst fbo2 = new THREE.WebGLRenderTarget(resolution, resolution, renderTargetParameters);\n\n\t\tconst blurPass = new BlurPass({\n\t\t\tgl,\n\t\t\tresolution,\n\t\t\twidth: blur[0],\n\t\t\theight: blur[1],\n\t\t\tminDepthThreshold,\n\t\t\tmaxDepthThreshold,\n\t\t\tdepthScale,\n\t\t\tdepthToBlurRatioBias,\n\t\t});\n\n\t\tconst defines: NgtAnyRecord = {};\n\n\t\tif (hasBlur) {\n\t\t\tdefines['USE_BLUR'] = '';\n\t\t}\n\n\t\tif (depthScale > 0) {\n\t\t\tdefines['USE_DEPTH'] = '';\n\t\t}\n\n\t\tif (distortionMap) {\n\t\t\tdefines['USE_DISTORTION'] = '';\n\t\t}\n\n\t\tconst reflectorParameters = {\n\t\t\tmirror,\n\t\t\ttextureMatrix: this.textureMatrix,\n\t\t\tmixBlur,\n\t\t\ttDiffuse: fbo1.texture,\n\t\t\ttDepth: fbo1.depthTexture,\n\t\t\ttDiffuseBlur: fbo2.texture,\n\t\t\thasBlur,\n\t\t\tmixStrength,\n\t\t\tminDepthThreshold,\n\t\t\tmaxDepthThreshold,\n\t\t\tdepthScale,\n\t\t\tdepthToBlurRatioBias,\n\t\t\tdistortion,\n\t\t\tdistortionMap,\n\t\t\tmixContrast,\n\t\t\tdefines,\n\t\t};\n\n\t\treturn { fbo1, fbo2, blurPass, reflectorParameters };\n\t});\n\n\tprivate definesKey = computed(() => {\n\t\tconst defines = this.reflectState().reflectorParameters.defines;\n\t\treturn Object.entries(defines).reduce((acc, [key, value]) => (value != null ? `${acc} ${key}` : acc), '');\n\t});\n\n\tmaterial = computed(() => {\n\t\tconst prevMaterial = untracked(this.materialRef)?.nativeElement;\n\n\t\tif (prevMaterial) {\n\t\t\tprevMaterial.dispose();\n\t\t\tdelete (prevMaterial as NgtAnyRecord)['__ngt__'];\n\t\t\tdelete (prevMaterial as NgtAnyRecord)['__ngt_renderer__'];\n\t\t}\n\n\t\t// tracking defines key so that the material is recreated when the defines change\n\t\tthis.definesKey();\n\t\treturn new MeshReflectorMaterial();\n\t});\n\n\tconstructor() {\n\t\teffect(() => {\n\t\t\tconst material = this.materialRef()?.nativeElement;\n\t\t\tif (!material) return;\n\t\t\tconst { reflectorParameters } = this.reflectState();\n\t\t\tapplyProps(material, { ...reflectorParameters, ...this.parameters() });\n\t\t});\n\n\t\tinject(DestroyRef).onDestroy(() => {\n\t\t\tconst material = this.materialRef()?.nativeElement;\n\t\t\tif (material) {\n\t\t\t\tmaterial.dispose();\n\t\t\t\tdelete (material as NgtAnyRecord)['__ngt__'];\n\t\t\t\tdelete (material as NgtAnyRecord)['__ngt_renderer__'];\n\t\t\t}\n\t\t});\n\n\t\tinjectBeforeRender(({ gl, scene }) => {\n\t\t\tconst material = this.materialRef()?.nativeElement;\n\t\t\tif (!material) return;\n\n\t\t\tconst instanceState = getInstanceState(material);\n\t\t\tif (!instanceState) return;\n\n\t\t\tconst parent = Reflect.get(material, 'parent') ?? untracked(instanceState.parent);\n\t\t\tif (!parent) return;\n\n\t\t\tconst { fbo1, fbo2, blurPass } = this.reflectState();\n\t\t\tconst hasBlur = this.hasBlur();\n\n\t\t\tparent.visible = false;\n\t\t\tconst currentXrEnabled = gl.xr.enabled;\n\t\t\tconst currentShadowAutoUpdate = gl.shadowMap.autoUpdate;\n\t\t\tthis.beforeRender();\n\t\t\tgl.xr.enabled = false;\n\t\t\tgl.shadowMap.autoUpdate = false;\n\t\t\tgl.setRenderTarget(fbo1);\n\t\t\tgl.state.buffers.depth.setMask(true);\n\t\t\tif (!gl.autoClear) gl.clear();\n\t\t\tgl.render(scene, this.virtualCamera);\n\t\t\tif (hasBlur) blurPass.render(gl, fbo1, fbo2);\n\t\t\tgl.xr.enabled = currentXrEnabled;\n\t\t\tgl.shadowMap.autoUpdate = currentShadowAutoUpdate;\n\t\t\tparent.visible = true;\n\t\t\tgl.setRenderTarget(null);\n\t\t});\n\t}\n\n\tprivate beforeRender() {\n\t\tconst material = this.materialRef()?.nativeElement;\n\t\tif (!material) return;\n\n\t\tconst instanceState = getInstanceState(material);\n\t\tif (!instanceState) return;\n\n\t\tconst parent = Reflect.get(material, 'parent') ?? untracked(instanceState.parent);\n\t\tif (!parent) return;\n\n\t\tconst { camera } = this.store.snapshot;\n\t\tconst { reflectorOffset } = untracked(this.reflectOptions);\n\n\t\tthis.reflectorWorldPosition.setFromMatrixPosition(parent.matrixWorld);\n\t\tthis.cameraWorldPosition.setFromMatrixPosition(camera.matrixWorld);\n\t\tthis.rotationMatrix.extractRotation(parent.matrixWorld);\n\t\tthis.normal.set(0, 0, 1);\n\t\tthis.normal.applyMatrix4(this.rotationMatrix);\n\t\tthis.reflectorWorldPosition.addScaledVector(this.normal, reflectorOffset);\n\t\tthis.view.subVectors(this.reflectorWorldPosition, this.cameraWorldPosition);\n\t\t// Avoid rendering when reflector is facing away\n\t\tif (this.view.dot(this.normal) > 0) return;\n\t\tthis.view.reflect(this.normal).negate();\n\t\tthis.view.add(this.reflectorWorldPosition);\n\t\tthis.rotationMatrix.extractRotation(camera.matrixWorld);\n\t\tthis.lookAtPosition.set(0, 0, -1);\n\t\tthis.lookAtPosition.applyMatrix4(this.rotationMatrix);\n\t\tthis.lookAtPosition.add(this.cameraWorldPosition);\n\t\tthis.target.subVectors(this.reflectorWorldPosition, this.lookAtPosition);\n\t\tthis.target.reflect(this.normal).negate();\n\t\tthis.target.add(this.reflectorWorldPosition);\n\t\tthis.virtualCamera.position.copy(this.view);\n\t\tthis.virtualCamera.up.set(0, 1, 0);\n\t\tthis.virtualCamera.up.applyMatrix4(this.rotationMatrix);\n\t\tthis.virtualCamera.up.reflect(this.normal);\n\t\tthis.virtualCamera.lookAt(this.target);\n\t\tthis.virtualCamera.far = camera.far; // Used in WebGLBackground\n\t\tthis.virtualCamera.updateMatrixWorld();\n\t\tthis.virtualCamera.projectionMatrix.copy(camera.projectionMatrix);\n\t\t// Update the texture matrix\n\t\tthis.textureMatrix.set(0.5, 0.0, 0.0, 0.5, 0.0, 0.5, 0.0, 0.5, 0.0, 0.0, 0.5, 0.5, 0.0, 0.0, 0.0, 1.0);\n\t\tthis.textureMatrix.multiply(this.virtualCamera.projectionMatrix);\n\t\tthis.textureMatrix.multiply(this.virtualCamera.matrixWorldInverse);\n\t\tthis.textureMatrix.multiply(parent.matrixWorld);\n\t\t// Now update projection matrix with new clip plane, implementing code from: http://www.terathon.com/code/oblique.html\n\t\t// Paper explaining this technique: http://www.terathon.com/lengyel/Lengyel-Oblique.pdf\n\t\tthis.reflectorPlane.setFromNormalAndCoplanarPoint(this.normal, this.reflectorWorldPosition);\n\t\tthis.reflectorPlane.applyMatrix4(this.virtualCamera.matrixWorldInverse);\n\t\tthis.clipPlane.set(\n\t\t\tthis.reflectorPlane.normal.x,\n\t\t\tthis.reflectorPlane.normal.y,\n\t\t\tthis.reflectorPlane.normal.z,\n\t\t\tthis.reflectorPlane.constant,\n\t\t);\n\t\tconst projectionMatrix = this.virtualCamera.projectionMatrix;\n\t\tthis.q.x = (Math.sign(this.clipPlane.x) + projectionMatrix.elements[8]) / projectionMatrix.elements[0];\n\t\tthis.q.y = (Math.sign(this.clipPlane.y) + projectionMatrix.elements[9]) / projectionMatrix.elements[5];\n\t\tthis.q.z = -1.0;\n\t\tthis.q.w = (1.0 + projectionMatrix.elements[10]) / projectionMatrix.elements[14];\n\t\t// Calculate the scaled plane vector\n\t\tthis.clipPlane.multiplyScalar(2.0 / this.clipPlane.dot(this.q));\n\t\t// Replacing the third row of the projection matrix\n\t\tprojectionMatrix.elements[2] = this.clipPlane.x;\n\t\tprojectionMatrix.elements[6] = this.clipPlane.y;\n\t\tprojectionMatrix.elements[10] = this.clipPlane.z + 1.0;\n\t\tprojectionMatrix.elements[14] = this.clipPlane.w;\n\t}\n}\n","import {\n\tChangeDetectionStrategy,\n\tComponent,\n\tcomputed,\n\tCUSTOM_ELEMENTS_SCHEMA,\n\tDestroyRef,\n\teffect,\n\tElementRef,\n\tinject,\n\tinput,\n\tuntracked,\n\tviewChild,\n} from '@angular/core';\nimport {\n\tgetInstanceState,\n\tinjectBeforeRender,\n\tinjectStore,\n\tis,\n\tNgtAnyRecord,\n\tNgtArgs,\n\tNgtAttachable,\n\tNgtThreeElements,\n\tomit,\n\tpick,\n} from 'angular-three';\nimport { MeshRefractionMaterial } from 'angular-three-soba/shaders';\nimport { mergeInputs } from 'ngxtension/inject-inputs';\nimport * as THREE from 'three';\nimport { MeshBVH, MeshBVHUniformStruct, SAH } from 'three-mesh-bvh';\n\nexport interface NgtsMeshRefractionMaterialOptions extends Partial<NgtThreeElements['ngt-shader-material']> {\n\t/** Number of ray-cast bounces, it can be expensive to have too many, 2 */\n\tbounces: number;\n\t/** Refraction index, 2.4 */\n\tior: number;\n\t/** Fresnel (strip light), 0 */\n\tfresnel: number;\n\t/** RGB shift intensity, can be expensive, 0 */\n\taberrationStrength: number;\n\t/** Color, white */\n\tcolor: THREE.ColorRepresentation;\n\t/** If this is on it uses fewer ray casts for the RGB shift sacrificing physical accuracy, true */\n\tfastChroma: boolean;\n}\n\nconst defaultOptions: NgtsMeshRefractionMaterialOptions = {\n\tbounces: 2,\n\tior: 2.4,\n\tfresnel: 0,\n\taberrationStrength: 0,\n\tcolor: 'white',\n\tfastChroma: true,\n};\n\n@Component({\n\tselector: 'ngts-mesh-refraction-material',\n\ttemplate: `\n\t\t<ngt-primitive\n\t\t\t*args=\"[material()]\"\n\t\t\t#material\n\t\t\t[attach]=\"attach()\"\n\t\t\t[parameters]=\"parameters()\"\n\t\t\t[envMap]=\"envMap()\"\n\t\t\t[aberrationStrength]=\"aberrationStrength()\"\n\t\t\t[resolution]=\"resolution()\"\n\t\t\t[defines]=\"defines()\"\n\t\t>\n\t\t\t<ng-content />\n\t\t</ngt-primitive>\n\t`,\n\tschemas: [CUSTOM_ELEMENTS_SCHEMA],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\timports: [NgtArgs],\n})\nexport class NgtsMeshRefractionMaterial {\n\tenvMap = input.required<THREE.CubeTexture | THREE.Texture>();\n\tattach = input<NgtAttachable>('material');\n\toptions = input(defaultOptions, { transform: mergeInputs(defaultOptions) });\n\tprotected parameters = omit(this.options, ['fastChroma', 'aberrationStrength']);\n\n\tprivate fastChroma = pick(this.options, 'fastChroma');\n\tprotected aberrationStrength = pick(this.options, 'aberrationStrength');\n\n\tmaterialRef = viewChild<ElementRef<InstanceType<typeof MeshRefractionMaterial>>>('material');\n\n\tprivate store = injectStore();\n\n\tprotected resolution = computed(() => [this.store.size.width(), this.store.size.height()]);\n\tprotected defines = computed(() => {\n\t\tconst _defines = {} as { [key: string]: string };\n\t\tconst [envMap, aberrationStrength, fastChroma] = [\n\t\t\tuntracked(this.envMap),\n\t\t\tthis.aberrationStrength(),\n\t\t\tthis.fastChroma(),\n\t\t];\n\t\tconst isCubeMap = is.three<THREE.CubeTexture>(envMap, 'isCubeTexture');\n\n\t\tconst w = (isCubeMap ? envMap.image[0]?.width : envMap.image.width) ?? 1024;\n\t\tconst cubeSize = w / 4;\n\t\tconst _lodMax = Math.floor(Math.log2(cubeSize));\n\t\tconst _cubeSize = Math.pow(2, _lodMax);\n\t\tconst width = 3 * Math.max(_cubeSize, 16 * 7);\n\t\tconst height = 4 * _cubeSize;\n\n\t\tif (isCubeMap) _defines['ENVMAP_TYPE_CUBEM'] = '';\n\t\t_defines['CUBEUV_TEXEL_WIDTH'] = `${1.0 / width}`;\n\t\t_defines['CUBEUV_TEXEL_HEIGHT'] = `${1.0 / height}`;\n\t\t_defines['CUBEUV_MAX_MIP'] = `${_lodMax}.0`;\n\n\t\t// Add defines from chromatic aberration\n\t\tif (aberrationStrength > 0) _defines['CHROMATIC_ABERRATIONS'] = '';\n\t\tif (fastChroma) _defines['FAST_CHROMA'] = '';\n\n\t\treturn _defines;\n\t});\n\n\tprivate defineKeys = computed(() => {\n\t\treturn Object.keys(this.defines()).join(' ');\n\t});\n\n\tprotected material = computed(() => {\n\t\tconst prevMaterial = untracked(this.materialRef)?.nativeElement;\n\n\t\tif (prevMaterial) {\n\t\t\tprevMaterial.dispose();\n\t\t\tdelete (prevMaterial as NgtAnyRecord)['__ngt__'];\n\t\t\tdelete (prevMaterial as NgtAnyRecord)['__ngt_renderer__'];\n\t\t}\n\n\t\t// track by this.defineKeys\n\t\tthis.defineKeys();\n\t\treturn new MeshRefractionMaterial();\n\t});\n\n\tconstructor() {\n\t\teffect(() => {\n\t\t\tconst material = this.materialRef()?.nativeElement;\n\t\t\tif (!material) return;\n\n\t\t\tconst instanceState = getInstanceState(material);\n\t\t\tif (!instanceState) return;\n\n\t\t\tconst parent = untracked(instanceState.parent);\n\t\t\tconst geometry = (parent as unknown as THREE.Mesh).geometry;\n\t\t\tif (geometry) {\n\t\t\t\tconst bvh = new MeshBVHUniformStruct();\n\t\t\t\tbvh.updateFrom(new MeshBVH(geometry.clone().toNonIndexed(), { strategy: SAH }));\n\t\t\t\tObject.assign(material, { bvh });\n\t\t\t}\n\t\t});\n\n\t\tinjectBeforeRender(({ camera }) => {\n\t\t\tconst material = this.materialRef()?.nativeElement;\n\t\t\tif (material) {\n\t\t\t\tObject.assign(material, {\n\t\t\t\t\tviewMatrixInverse: camera.matrixWorld,\n\t\t\t\t\tprojectionMatrixInverse: camera.projectionMatrixInverse,\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\n\t\tinject(DestroyRef).onDestroy(() => {\n\t\t\tconst material = this.materialRef()?.nativeElement;\n\t\t\tif (material) {\n\t\t\t\tmaterial.dispose();\n\t\t\t\tdelete (material as NgtAnyRecord)['__ngt__'];\n\t\t\t\tdelete (material as NgtAnyRecord)['__ngt_renderer__'];\n\t\t\t}\n\t\t});\n\t}\n}\n","import {\n\tChangeDetectionStrategy,\n\tComponent,\n\tcomputed,\n\tCUSTOM_ELEMENTS_SCHEMA,\n\tDestroyRef,\n\tElementRef,\n\tinject,\n\tinput,\n\tuntracked,\n\tviewChild,\n} from '@angular/core';\nimport {\n\tgetInstanceState,\n\tinjectBeforeRender,\n\tNgtAnyRecord,\n\tNgtArgs,\n\tNgtAttachable,\n\tNgtThreeElements,\n\tomit,\n\tpick,\n} from 'angular-three';\nimport { injectFBO } from 'angular-three-soba/misc';\nimport { MeshDiscardMaterial, MeshTransmissionMaterial } from 'angular-three-soba/vanilla-exports';\nimport { mergeInputs } from 'ngxtension/inject-inputs';\nimport * as THREE from 'three';\n\nexport type MeshTransmissionMaterialOptions = ConstructorParameters<typeof MeshTransmissionMaterial>[0];\n\nexport type NgtsMeshTransmissionMaterialOptions = Partial<NgtThreeElements['ngt-mesh-physical-material']> &\n\tOmit<MeshTransmissionMaterialOptions, 'buffer' | 'anisotropicBlur' | 'samples' | 'transmissionSampler'> & {\n\t\tanisotropicBlur?: number;\n\t\tbuffer?: THREE.Texture;\n\t\t/** transmissionSampler, you can use the threejs transmission sampler texture that is\n\t\t * generated once for all transmissive materials. The upside is that it can be faster if you\n\t\t * use multiple MeshPhysical and Transmission materials, the downside is that transmissive materials\n\t\t * using this can't see other transparent or transmissive objects, default: false */\n\t\ttransmissionSampler: boolean;\n\t\t/** Render the backside of the material (more cost, better results), default: false */\n\t\tbackside: boolean;\n\t\t/** Backside thickness (when backside is true), default: 0 */\n\t\tbacksideThickness: number;\n\t\tbacksideEnvMapIntensity: number;\n\t\t/** Resolution of the local buffer, default: undefined (fullscreen) */\n\t\tresolution?: number;\n\t\t/** Resolution of the local buffer for backfaces, default: undefined (fullscreen) */\n\t\tbacksideResolution?: number;\n\t\t/** Refraction samples, default: 6 */\n\t\tsamples: number;\n\t\t/** Buffer scene background (can be a texture, a cubetexture or a color), default: null */\n\t\tbackground?: THREE.Texture | THREE.Color;\n\t};\n\nconst defaultOptions: NgtsMeshTransmissionMaterialOptions = {\n\ttransmissionSampler: false,\n\tbackside: false,\n\tside: THREE.FrontSide,\n\ttransmission: 1,\n\tthickness: 0,\n\tbacksideThickness: 0,\n\tbacksideEnvMapIntensity: 1,\n\tsamples: 10,\n};\n\n@Component({\n\tselector: 'ngts-mesh-transmission-material',\n\ttemplate: `\n\t\t<ngt-primitive\n\t\t\t*args=\"[material()]\"\n\t\t\t#material\n\t\t\t[attach]=\"attach()\"\n\t\t\t[parameters]=\"parameters()\"\n\t\t\t[_transmission]=\"transmission()\"\n\t\t\t[transmission]=\"transmissionSampler() ? transmission() : 0\"\n\t\t\t[buffer]=\"bufferTexture()\"\n\t\t\t[anisotropicBlur]=\"anisotropicBlurOption()\"\n\t\t\t[side]=\"side()\"\n\t\t\t[thickness]=\"thickness()\"\n\t\t>\n\t\t\t<ng-content />\n\t\t</ngt-primitive>\n\t`,\n\tschemas: [CUSTOM_ELEMENTS_SCHEMA],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\timports: [NgtArgs],\n})\nexport class NgtsMeshTransmissionMaterial {\n\tattach = input<NgtAttachable>('material');\n\toptions = input(defaultOptions, { transform: mergeInputs(defaultOptions) });\n\tprotected parameters = omit(this.options, [\n\t\t'buffer',\n\t\t'transmissionSampler',\n\t\t'backside',\n\t\t'side',\n\t\t'transmission',\n\t\t'thickness',\n\t\t'backsideThickness',\n\t\t'backsideEnvMapIntensity',\n\t\t'samples',\n\t\t'resolution',\n\t\t'backsideResolution',\n\t\t'background',\n\t\t'anisotropy',\n\t\t'anisotropicBlur',\n\t]);\n\n\tprivate resolution = pick(this.options, 'resolution');\n\tprivate backsideResolution = pick(this.options, 'backsideResolution');\n\tprivate samples = pick(this.options, 'samples');\n\tprivate buffer = pick(this.options, 'buffer');\n\tprivate anisotropy = pick(this.options, 'anisotropy');\n\tprivate anisotropicBlur = pick(this.options, 'anisotropicBlur');\n\tprivate background = pick(this.options, 'background');\n\tprivate backside = pick(this.options, 'backside');\n\tprivate backsideThickness = pick(this.options, 'backsideThickness');\n\tprivate backsideEnvMapIntensity = pick(this.options, 'backsideEnvMapIntensity');\n\n\tprotected transmissionSampler = pick(this.options, 'transmissionSampler');\n\tprotected transmission = pick(this.options, 'transmission');\n\tprotected thickness = pick(this.options, 'thickness');\n\tprotected side = pick(this.options, 'side');\n\n\tmaterialRef = viewChild<ElementRef<MeshTransmissionMaterial & MeshTransmissionMaterialOptions>>('material');\n\n\tprivate backResolution = computed(() => this.backsideResolution() || this.resolution());\n\n\tprivate fboBack = injectFBO(() => ({ width: this.backResolution() }));\n\tprivate fboMain = injectFBO(() => ({ width: this.resolution() }));\n\n\tprotected bufferTexture = computed(() => this.buffer() || this.fboMain().texture);\n\tprotected anisotropicBlurOption = computed(() => this.anisotropicBlur() || this.anisotropy());\n\n\tprivate discardMaterial = new MeshDiscardMaterial();\n\n\tprotected material = computed(() => {\n\t\tconst previousMaterial = untracked(this.materialRef)?.nativeElement;\n\n\t\tif (previousMaterial) {\n\t\t\tpreviousMaterial.dispose();\n\t\t\tdelete (previousMaterial as NgtAnyRecord)['__ngt__'];\n\t\t\tdelete (previousMaterial as NgtAnyRecord)['__ngt_renderer__'];\n\t\t}\n\n\t\tconst [samples, transmissionSampler] = [this.samples(), this.transmissionSampler()];\n\t\treturn new MeshTransmissionMaterial({ samples, transmissionSampler });\n\t});\n\n\tconstructor() {\n\t\tinject(DestroyRef).onDestroy(() => {\n\t\t\tconst material = this.materialRef()?.nativeElement;\n\t\t\tif (material) {\n\t\t\t\tmaterial.dispose();\n\t\t\t\tdelete (material as NgtAnyRecord)['__ngt__'];\n\t\t\t\tdelete (material as NgtAnyRecord)['__ngt_renderer__'];\n\t\t\t}\n\t\t});\n\n\t\tlet oldBg: THREE.Texture | THREE.Color | null;\n\t\tlet oldEnvMapIntensity: number | undefined;\n\t\tlet oldTone: THREE.ToneMapping | undefined;\n\t\tlet parent: THREE.Mesh | undefined;\n\t\tinjectBeforeRender(({ clock, gl, scene, camera }) => {\n\t\t\tconst material = this.materialRef()?.nativeElement;\n\t\t\tif (!material) return;\n\n\t\t\tconst [\n\t\t\t\tfboMain,\n\t\t\t\tfboBack,\n\t\t\t\ttransmissionSampler,\n\t\t\t\tbackground,\n\t\t\t\tbackside,\n\t\t\t\tbacksideThickness,\n\t\t\t\tbacksideEnvMapIntensity,\n\t\t\t\tthickness,\n\t\t\t\tside,\n\t\t\t] = [\n\t\t\t\tthis.fboMain(),\n\t\t\t\tthis.fboBack(),\n\t\t\t\tthis.transmissionSampler(),\n\t\t\t\tthis.background(),\n\t\t\t\tthis.backside(),\n\t\t\t\tthis.backsideThickness(),\n\t\t\t\tthis.backsideEnvMapIntensity(),\n\t\t\t\tthis.thickness(),\n\t\t\t\tthis.side(),\n\t\t\t];\n\n\t\t\tmaterial.time = clock.getElapsedTime();\n\t\t\t// Render only if the buffer matches the built-in and no transmission sampler is set\n\t\t\t// @ts-expect-error - we know material.buffer is not just undefined | null\n\t\t\tif (material.buffer === fboMain.texture && !transmissionSampler) {\n\t\t\t\tparent = getInstanceState(material)?.parent() as unknown as THREE.Mesh;\n\n\t\t\t\tif (parent) {\n\t\t\t\t\t// Save defaults\n\t\t\t\t\toldTone = gl.toneMapping;\n\t\t\t\t\toldBg = scene.background;\n\t\t\t\t\toldEnvMapIntensity = material.envMapIntensity;\n\n\t\t\t\t\t// Switch off tonemapping lest it double tone maps\n\t\t\t\t\t// Save the current background and set the HDR as the new BG\n\t\t\t\t\t// Use discardmaterial, the parent will be invisible, but it's shadows will still be cast\n\t\t\t\t\tgl.toneMapping = THREE.NoToneMapping;\n\t\t\t\t\tif (background) scene.background = background;\n\t\t\t\t\tparent.material = this.discardMaterial;\n\n\t\t\t\t\tif (backside) {\n\t\t\t\t\t\t// Render into the backside buffer\n\t\t\t\t\t\tgl.setRenderTarget(fboBack);\n\t\t\t\t\t\tgl.render(scene, camera);\n\t\t\t\t\t\t// And now prepare the material for the main render using the backside buffer\n\t\t\t\t\t\tparent.material = material;\n\t\t\t\t\t\tObject.assign(parent.material, {\n\t\t\t\t\t\t\tbuffer: fboBack.texture,\n\t\t\t\t\t\t\tthickness: backsideThickness,\n\t\t\t\t\t\t\tside: THREE.BackSide,\n\t\t\t\t\t\t\tenvMapIntensity: backsideEnvMapIntensity,\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\n\t\t\t\t\t// Render into the main buffer\n\t\t\t\t\tgl.setRenderTarget(fboMain);\n\t\t\t\t\tgl.render(scene, camera);\n\n\t\t\t\t\tparent.material = material;\n\t\t\t\t\tObject.assign(parent.material, {\n\t\t\t\t\t\tbuffer: fboMain.texture,\n\t\t\t\t\t\tthickness,\n\t\t\t\t\t\tside,\n\t\t\t\t\t\tenvMapIntensity: oldEnvMapIntensity,\n\t\t\t\t\t});\n\n\t\t\t\t\t// Set old state back\n\t\t\t\t\tscene.background = oldBg;\n\t\t\t\t\tgl.setRenderTarget(null);\n\t\t\t\t\tgl.toneMapping = oldTone;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n}\n","import { ChangeDetectionStrategy, Component, CUSTOM_ELEMENTS_SCHEMA, DestroyRef, inject, input } from '@angular/core';\nimport { injectBeforeRender, NgtArgs, NgtAttachable, NgtThreeElements, omit } from 'angular-three';\nimport { MeshWobbleMaterial, MeshWobbleMaterialParameters } from 'angular-three-soba/vanilla-exports';\nimport { mergeInputs } from 'ngxtension/inject-inputs';\n\nexport interface NgtsMeshWobbleMaterialOptions\n\textends MeshWobbleMaterialParameters,\n\t\tPartial<NgtThreeElements['ngt-mesh-standard-material']> {\n\tspeed: number;\n}\n\nconst defaultOptions: NgtsMeshWobbleMaterialOptions = {\n\tspeed: 1,\n};\n\n@Component({\n\tselector: 'ngts-mesh-wobble-material',\n\ttemplate: `\n\t\t<ngt-primitive *args=\"[material]\" [parameters]=\"parameters()\" [attach]=\"attach()\">\n\t\t\t<ng-content />\n\t\t</ngt-primitive>\n\t`,\n\timports: [NgtArgs],\n\tschemas: [CUSTOM_ELEMENTS_SCHEMA],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class NgtsMeshWobbleMaterial {\n\tattach = input<NgtAttachable>('material');\n\toptions = input(defaultOptions, { transform: mergeInputs(defaultOptions) });\n\tprotected parameters = omit(this.options, ['speed']);\n\n\tprotected material = new MeshWobbleMaterial();\n\n\tconstructor() {\n\t\tinject(DestroyRef).onDestroy(() => this.material.dispose());\n\n\t\tinjectBeforeRender(({ clock }) => {\n\t\t\tconst material = this.material;\n\t\t\tmaterial.time = clock.elapsedTime * this.options().speed;\n\t\t});\n\t}\n}\n","import { ChangeDetectionStrategy, Component, CUSTOM_ELEMENTS_SCHEMA, DestroyRef, inject, input } from '@angular/core';\nimport { NgtArgs, NgtAttachable } from 'angular-three';\nimport { PointMaterial } from 'angular-three-soba/shaders';\nimport * as THREE from 'three';\n\n@Component({\n\tselector: 'ngts-point-material',\n\ttemplate: `\n\t\t<ngt-primitive *args=\"[material]\" [attach]=\"attach()\" [parameters]=\"options()\">\n\t\t\t<ng-content />\n\t\t</ngt-primitive>\n\t`,\n\tschemas: [CUSTOM_ELEMENTS_SCHEMA],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\timports: [NgtArgs],\n})\nexport class NgtsPointMaterial {\n\tattach = input<NgtAttachable>('material');\n\toptions = input({} as THREE.PointsMaterialParameters);\n\n\tprotected material = new PointMaterial(this.options());\n\n\tconstructor() {\n\t\tinject(DestroyRef).onDestroy(() => this.material.dispose());\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["defaultOptions"],"mappings":";;;;;;;;;;;;;;MAwBa,wBAAwB,CAAA;AAwCpC,IAAA,WAAA,GAAA;AAvCA,QAAA,IAAA,CAAA,YAAY,GAAG,KAAK,CAAC,QAAQ,EAAuE;AACpG,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK,CAAgB,UAAU,CAAC;AACzC,QAAA,IAAA,CAAA,OAAO,GAAG,KAAK,CAAC,EAAiF,CAAC;AAClG,QAAA,IAAA,CAAA,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,gBAAgB,EAAE,cAAc,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC;AAEnF,QAAA,IAAA,CAAA,IAAI,GAAG,QAAQ,CAAC,MAAK;AAC5B,YAAA,MAAM,YAAY,GAAG,IAAI,CAAC,YAAY,EAAE;AACxC,YAAA,OAAO,EAAE,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,YAAY,CAAC,aAAa,GAAG,YAAY;AACxE,SAAC,CAAC;QAEM,IAAc,CAAA,cAAA,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,gBAAgB,CAAC;QACrD,IAAY,CAAA,YAAA,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,cAA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AA,QAAA,EAAA;;;;AAIT,CAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAGS,OAAO,EAAA,QAAA,EAAA,mBAAA,EAAA,MAAA,EAAA,CAAA,MAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAEL,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAX7B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,qBAAqB;AAC/B,oBAAA,QAAQ,EAAE;;;;AAIT,CAAA,CAAA;oBACD,OAAO,EAAE,CAAC,sBAAsB,CAAC;oBACjC,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,OAAO,EAAE,CAAC,OAAO,CAAC;AAClB,iBAAA;;;ACfD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"angular-three-soba-materials.mjs","sources":["../../../../libs/soba/materials/src/lib/custom-shader-material.ts","../../../../libs/soba/materials/src/lib/mesh-distort-material.ts","../../../../libs/soba/materials/src/lib/mesh-portal-material.ts","../../../../libs/soba/materials/src/lib/mesh-reflector-material.ts","../../../../libs/soba/materials/src/lib/mesh-refraction-material.ts","../../../../libs/soba/materials/src/lib/mesh-transmission-material.ts","../../../../libs/soba/materials/src/lib/mesh-wobble-material.ts","../../../../libs/soba/materials/src/lib/point-material.ts","../../../../libs/soba/materials/src/angular-three-soba-materials.ts"],"sourcesContent":["import {\n\tChangeDetectionStrategy,\n\tComponent,\n\tcomputed,\n\tCUSTOM_ELEMENTS_SCHEMA,\n\teffect,\n\tElementRef,\n\tinput,\n} from '@angular/core';\nimport { is, NgtAnyRecord, NgtArgs, NgtAttachable, omit, pick } from 'angular-three';\nimport * as THREE from 'three';\nimport CustomShaderMaterial from 'three-custom-shader-material/vanilla';\n\n@Component({\n\tselector: 'ngts-custom-shader-material',\n\ttemplate: `\n\t\t<ngt-primitive *args=\"[material()]\" [attach]=\"attach()\" [parameters]=\"parameters()\">\n\t\t\t<ng-content />\n\t\t</ngt-primitive>\n\t`,\n\tschemas: [CUSTOM_ELEMENTS_SCHEMA],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\timports: [NgtArgs],\n})\nexport class NgtsCustomShaderMaterial {\n\tbaseMaterial = input.required<THREE.Material | typeof THREE.Material | ElementRef<THREE.Material>>();\n\tattach = input<NgtAttachable>('material');\n\toptions = input({} as Omit<ConstructorParameters<typeof CustomShaderMaterial>[0], 'baseMaterial'>);\n\tparameters = omit(this.options, ['fragmentShader', 'vertexShader', 'uniforms', 'cacheKey']);\n\n\tprivate base = computed(() => {\n\t\tconst baseMaterial = this.baseMaterial();\n\t\treturn is.ref(baseMaterial) ? baseMaterial.nativeElement : baseMaterial;\n\t});\n\n\tprivate fragmentShader = pick(this.options, 'fragmentShader');\n\tprivate vertexShader = pick(this.options, 'vertexShader');\n\tprivate uniforms = pick(this.options, 'uniforms');\n\tprivate cacheKey = pick(this.options, 'cacheKey');\n\n\tmaterial = computed(() => {\n\t\tconst [base, fragmentShader, vertexShader, uniforms, cacheKey] = [\n\t\t\tthis.base(),\n\t\t\tthis.fragmentShader(),\n\t\t\tthis.vertexShader(),\n\t\t\tthis.uniforms(),\n\t\t\tthis.cacheKey(),\n\t\t];\n\n\t\t// NOTE: this is specific to angular-three\n\t\tif (is.instance(base)) {\n\t\t\tdelete (base as NgtAnyRecord)['__ngt__'];\n\t\t\tdelete (base as NgtAnyRecord)['__ngt_renderer__'];\n\t\t}\n\n\t\treturn new CustomShaderMaterial({\n\t\t\tbaseMaterial: base,\n\t\t\tfragmentShader,\n\t\t\tvertexShader,\n\t\t\tuniforms,\n\t\t\tcacheKey,\n\t\t});\n\t});\n\n\tconstructor() {\n\t\teffect((onCleanup) => {\n\t\t\tconst material = this.material();\n\t\t\tonCleanup(() => material.dispose());\n\t\t});\n\t}\n}\n","import { ChangeDetectionStrategy, Component, CUSTOM_ELEMENTS_SCHEMA, DestroyRef, inject, input } from '@angular/core';\nimport { injectBeforeRender, NgtArgs, NgtAttachable, NgtThreeElements, omit, pick } from 'angular-three';\nimport { MeshDistortMaterial, MeshDistortMaterialParameters } from 'angular-three-soba/vanilla-exports';\nimport { mergeInputs } from 'ngxtension/inject-inputs';\n\nexport interface NgtsMeshDistortMaterialOptions\n\textends Partial<MeshDistortMaterialParameters>,\n\t\tPartial<NgtThreeElements['ngt-mesh-physical-material']> {\n\tspeed: number;\n\tfactor?: number;\n}\n\nconst defaultOptions: NgtsMeshDistortMaterialOptions = {\n\tspeed: 1,\n};\n\n@Component({\n\tselector: 'ngts-mesh-distort-material',\n\ttemplate: `\n\t\t<ngt-primitive *args=\"[material]\" [attach]=\"attach()\" [parameters]=\"parameters()\">\n\t\t\t<ng-content />\n\t\t</ngt-primitive>\n\t`,\n\tschemas: [CUSTOM_ELEMENTS_SCHEMA],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\timports: [NgtArgs],\n})\nexport class NgtsMeshDistortMaterial {\n\tattach = input<NgtAttachable>('material');\n\toptions = input(defaultOptions, { transform: mergeInputs(defaultOptions) });\n\tprotected parameters = omit(this.options, ['speed']);\n\n\tmaterial = new MeshDistortMaterial();\n\n\tprivate speed = pick(this.options, 'speed');\n\n\tconstructor() {\n\t\tinject(DestroyRef).onDestroy(() => this.material.dispose());\n\n\t\tinjectBeforeRender(({ clock }) => {\n\t\t\tthis.material.time = clock.getElapsedTime() * this.speed();\n\t\t});\n\t}\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n\tChangeDetectionStrategy,\n\tComponent,\n\tcomputed,\n\tcontentChild,\n\tCUSTOM_ELEMENTS_SCHEMA,\n\tDirective,\n\teffect,\n\tElementRef,\n\tinput,\n\tsignal,\n\tTemplateRef,\n\tviewChild,\n} from '@angular/core';\nimport {\n\textend,\n\tgetInstanceState,\n\tinjectBeforeRender,\n\tinjectStore,\n\tis,\n\tNgtAttachable,\n\tNgtComputeFunction,\n\tNgtThreeElements,\n\tomit,\n\tpick,\n} from 'angular-three';\nimport { getVersion, injectFBO, injectIntersect } from 'angular-three-soba/misc';\nimport { NgtsRenderTexture, NgtsRenderTextureContent } from 'angular-three-soba/staging';\nimport {\n\tMeshPortalMaterial,\n\tmeshPortalMaterialApplySDF,\n\tNgtMeshPortalMaterial,\n} from 'angular-three-soba/vanilla-exports';\nimport { mergeInputs } from 'ngxtension/inject-inputs';\nimport * as THREE from 'three';\nimport { FullScreenQuad } from 'three-stdlib';\n\n/**\n * This directive is used inside of the render texture, hence has access to the render texture store (a portal store)\n */\n@Directive({ selector: 'ngts-manage-portal-scene' })\nexport class ManagePortalScene {\n\tevents = input<boolean>();\n\trootScene = input.required<THREE.Scene>();\n\tmaterial = input.required<NgtMeshPortalMaterial>();\n\tpriority = input.required<number>();\n\tworldUnits = input.required<boolean>();\n\n\tconstructor() {\n\t\tconst renderTextureStore = injectStore();\n\n\t\tconst buffer1 = injectFBO();\n\t\tconst buffer2 = injectFBO();\n\n\t\tconst fullScreenQuad = computed(() => {\n\t\t\t// This fullscreen-quad is used to blend the two textures\n\t\t\tconst blend = { value: 0 };\n\t\t\tconst quad = new FullScreenQuad(\n\t\t\t\tnew THREE.ShaderMaterial({\n\t\t\t\t\tuniforms: {\n\t\t\t\t\t\ta: { value: buffer1().texture },\n\t\t\t\t\t\tb: { value: buffer2().texture },\n\t\t\t\t\t\tblend,\n\t\t\t\t\t},\n\t\t\t\t\tvertexShader: /*glsl*/ `\n\t\t varying vec2 vUv;\n\t\t void main() {\n\t\t vUv = uv;\n\t\t gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\t\t }`,\n\t\t\t\t\tfragmentShader: /*glsl*/ `\n\t\t uniform sampler2D a;\n\t\t uniform sampler2D b;\n\t\t uniform float blend;\n\t\t varying vec2 vUv;\n\t\t #include <packing>\n\t\t void main() {\n\t\t vec4 ta = texture2D(a, vUv);\n\t\t vec4 tb = texture2D(b, vUv);\n\t\t gl_FragColor = mix(tb, ta, blend);\n\t\t #include <tonemapping_fragment>\n\t\t #include <${getVersion() >= 154 ? 'colorspace_fragment' : 'encodings_fragment'}>\n\t\t }`,\n\t\t\t\t}),\n\t\t\t);\n\t\t\treturn [quad, blend] as const;\n\t\t});\n\n\t\teffect(() => {\n\t\t\trenderTextureStore.scene().matrixAutoUpdate = false;\n\t\t});\n\n\t\teffect(() => {\n\t\t\tconst [events, setEvents] = [this.events(), renderTextureStore.setEvents()];\n\t\t\tif (!events) return;\n\t\t\tsetEvents({ enabled: events });\n\t\t});\n\n\t\tinjectBeforeRender(\n\t\t\t({ gl, camera }) => {\n\t\t\t\tconst material = this.material();\n\n\t\t\t\tconst instanceState = getInstanceState(material);\n\t\t\t\tif (!instanceState) return;\n\n\t\t\t\tconst parent = instanceState.parent();\n\t\t\t\tif (!parent) return;\n\n\t\t\t\tconst priority = this.priority();\n\t\t\t\tconst materialBlend = 'blend' in material && typeof material.blend === 'number' ? material.blend : 0;\n\t\t\t\tconst [worldUnits, rootScene, scene, [quad, blend]] = [\n\t\t\t\t\tthis.worldUnits(),\n\t\t\t\t\tthis.rootScene(),\n\t\t\t\t\trenderTextureStore.snapshot.scene,\n\t\t\t\t\tfullScreenQuad(),\n\t\t\t\t];\n\t\t\t\t// Move portal contents along with the parent if worldUnits is true\n\t\t\t\tif (!worldUnits) {\n\t\t\t\t\t// If the portal renders exclusively the original scene needs to be updated\n\t\t\t\t\tif (priority && materialBlend === 1) parent['updateWorldMatrix'](true, false);\n\t\t\t\t\tscene.matrixWorld.copy(parent['matrixWorld']);\n\t\t\t\t} else {\n\t\t\t\t\tscene.matrixWorld.identity();\n\t\t\t\t}\n\n\t\t\t\t// This bit is only necessary if the portal is blended, now it has a render-priority\n\t\t\t\t// and will take over the render loop\n\t\t\t\tif (priority) {\n\t\t\t\t\tif (materialBlend > 0 && materialBlend < 1) {\n\t\t\t\t\t\t// If blend is ongoing (> 0 and < 1) then we need to render both the root scene\n\t\t\t\t\t\t// and the portal scene, both will then be mixed in the quad from above\n\t\t\t\t\t\tblend.value = materialBlend;\n\t\t\t\t\t\tgl.setRenderTarget(buffer1());\n\t\t\t\t\t\tgl.render(scene, camera);\n\t\t\t\t\t\tgl.setRenderTarget(buffer2());\n\t\t\t\t\t\tgl.render(rootScene, camera);\n\t\t\t\t\t\tgl.setRenderTarget(null);\n\t\t\t\t\t\tquad.render(gl);\n\t\t\t\t\t} else if (materialBlend === 1) {\n\t\t\t\t\t\t// However if blend is 1 we only need to render the portal scene\n\t\t\t\t\t\tgl.render(scene, camera);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\t{ priority: this.priority },\n\t\t);\n\t}\n}\n\nexport interface NgtsMeshPortalMaterialOptions extends Partial<NgtThreeElements['ngt-shader-material']> {\n\t/** Mix the portals own scene with the world scene, 0 = world scene render,\n\t * 0.5 = both scenes render, 1 = portal scene renders, defaults to 0. */\n\tblend: number;\n\t/** Edge fade blur, 0 = no blur (default) */\n\tblur: number;\n\t/** SDF resolution, the smaller the faster is the start-up time (default: 512) */\n\tresolution: number;\n\t/** By default portals use relative coordinates, contents are affects by the local matrix transform */\n\tworldUnits: boolean;\n\t/** Optional event priority, defaults to 0 */\n\teventPriority: number;\n\t/** Optional render priority, defaults to 0 */\n\trenderPriority: number;\n\t/** Optionally diable events inside the portal, defaults to false */\n\tevents: boolean;\n}\n\nconst defaultOptions: NgtsMeshPortalMaterialOptions = {\n\tblend: 0,\n\tblur: 0,\n\tresolution: 512,\n\tworldUnits: false,\n\teventPriority: 0,\n\trenderPriority: 0,\n\tevents: false,\n};\n\n@Component({\n\tselector: 'ngts-mesh-portal-material',\n\ttemplate: `\n\t\t<ngt-mesh-portal-material\n\t\t\t#material\n\t\t\t[attach]=\"attach()\"\n\t\t\t[blur]=\"blur()\"\n\t\t\t[blend]=\"0\"\n\t\t\t[resolution]=\"materialResolution()\"\n\t\t\t[parameters]=\"parameters()\"\n\t\t>\n\t\t\t<ngts-render-texture\n\t\t\t\t[options]=\"{\n\t\t\t\t\tframes: renderTextureFrames(),\n\t\t\t\t\teventPriority: eventPriority(),\n\t\t\t\t\trenderPriority: renderPriority(),\n\t\t\t\t\tcompute: renderTextureCompute,\n\t\t\t\t}\"\n\t\t\t>\n\t\t\t\t<ng-template renderTextureContent let-injector=\"injector\">\n\t\t\t\t\t<ng-container [ngTemplateOutlet]=\"content()\" [ngTemplateOutletInjector]=\"injector\" />\n\t\t\t\t\t<ngts-manage-portal-scene\n\t\t\t\t\t\t[events]=\"events()\"\n\t\t\t\t\t\t[rootScene]=\"rootScene()\"\n\t\t\t\t\t\t[priority]=\"priority()\"\n\t\t\t\t\t\t[material]=\"material\"\n\t\t\t\t\t\t[worldUnits]=\"worldUnits()\"\n\t\t\t\t\t/>\n\t\t\t\t</ng-template>\n\t\t\t</ngts-render-texture>\n\t\t</ngt-mesh-portal-material>\n\t`,\n\tschemas: [CUSTOM_ELEMENTS_SCHEMA],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\timports: [NgtsRenderTexture, NgtsRenderTextureContent, ManagePortalScene, NgTemplateOutlet],\n})\nexport class NgtsMeshPortalMaterial {\n\tattach = input<NgtAttachable>('material');\n\toptions = input(defaultOptions, { transform: mergeInputs(defaultOptions) });\n\tprotected parameters = omit(this.options, [\n\t\t'blur',\n\t\t'resolution',\n\t\t'worldUnits',\n\t\t'eventPriority',\n\t\t'renderPriority',\n\t\t'events',\n\t]);\n\n\tprotected blur = pick(this.options, 'blur');\n\tprotected eventPriority = pick(this.options, 'eventPriority');\n\tprotected renderPriority = pick(this.options, 'renderPriority');\n\tprotected events = pick(this.options, 'events');\n\tprotected worldUnits = pick(this.options, 'worldUnits');\n\n\tmaterialRef = viewChild.required<ElementRef<InstanceType<typeof MeshPortalMaterial>>>('material');\n\tprotected content = contentChild.required(TemplateRef);\n\n\tprivate store = injectStore();\n\tprotected rootScene = this.store.scene;\n\n\tprotected materialResolution = computed(() => [\n\t\tthis.store.size.width() * this.store.viewport.dpr(),\n\t\tthis.store.size.height() * this.store.viewport.dpr(),\n\t]);\n\tprivate resolution = pick(this.options, 'resolution');\n\n\tprivate parent = signal<THREE.Mesh | null>(null);\n\tprivate visible = injectIntersect(this.parent, { source: signal(true) });\n\n\tprotected renderTextureFrames = computed(() => (this.visible() ? Infinity : 0));\n\n\tprotected renderTextureCompute = (...args: Parameters<NgtComputeFunction>) => {\n\t\tconst [parent, material] = [this.parent(), this.materialRef().nativeElement];\n\t\tif (!parent) return false;\n\n\t\tconst [event, state] = args;\n\n\t\tstate.snapshot.pointer.set(\n\t\t\t(event.offsetX / state.snapshot.size.width) * 2 - 1,\n\t\t\t-(event.offsetY / state.snapshot.size.height) * 2 + 1,\n\t\t);\n\t\tstate.snapshot.raycaster.setFromCamera(state.snapshot.pointer, state.snapshot.camera);\n\n\t\tif ('blend' in material && material.blend === 0) {\n\t\t\t// We run a quick check against the parent, if it isn't hit there's no need to raycast at all\n\t\t\tconst [intersection] = state.snapshot.raycaster.intersectObject(parent);\n\t\t\tif (!intersection) {\n\t\t\t\t// Cancel out the raycast camera if the parent mesh isn't hit\n\t\t\t\tObject.assign(state.snapshot.raycaster, { camera: undefined });\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn;\n\t};\n\n\tprotected priority = signal(0);\n\n\tconstructor() {\n\t\textend({ MeshPortalMaterial });\n\n\t\teffect(() => {\n\t\t\tconst material = this.materialRef().nativeElement;\n\n\t\t\tconst instanceState = getInstanceState(material);\n\t\t\tif (!instanceState) return;\n\n\t\t\tconst materialParent = instanceState.parent();\n\t\t\tif (!materialParent || !is.three<THREE.Mesh>(materialParent, 'isMesh')) return;\n\n\t\t\t// Since the ref above is not tied to a mesh directly (we're inside a material),\n\t\t\t// it has to be tied to the parent mesh here\n\t\t\tthis.parent.set(materialParent);\n\t\t});\n\n\t\teffect(() => {\n\t\t\tconst events = this.events();\n\t\t\tif (!events) return;\n\n\t\t\tconst setEvents = this.store.setEvents();\n\t\t\tsetEvents({ enabled: !events });\n\t\t});\n\n\t\teffect(() => {\n\t\t\tconst [material, parent] = [this.materialRef().nativeElement, this.parent()];\n\t\t\tif (!parent) return;\n\n\t\t\tconst [resolution, blur, gl] = [this.resolution(), this.blur(), this.store.gl()];\n\n\t\t\t// apply the SDF mask once\n\t\t\tif (blur && material.sdf == null) {\n\t\t\t\tmeshPortalMaterialApplySDF(parent, resolution, gl);\n\t\t\t}\n\t\t});\n\n\t\tinjectBeforeRender(() => {\n\t\t\tconst material = this.materialRef().nativeElement;\n\t\t\tconst priority =\n\t\t\t\t'blend' in material && typeof material.blend === 'number' && material.blend > 0\n\t\t\t\t\t? Math.max(1, this.renderPriority())\n\t\t\t\t\t: 0;\n\n\t\t\t// If blend is > 0 then the portal is being entered, the render-priority must change\n\t\t\tif (this.priority() !== priority) {\n\t\t\t\tthis.priority.set(priority);\n\t\t\t}\n\t\t});\n\t}\n}\n","import {\n\tChangeDetectionStrategy,\n\tComponent,\n\tcomputed,\n\tCUSTOM_ELEMENTS_SCHEMA,\n\tDestroyRef,\n\teffect,\n\tElementRef,\n\tinject,\n\tinput,\n\tuntracked,\n\tviewChild,\n} from '@angular/core';\nimport {\n\tapplyProps,\n\tgetInstanceState,\n\tinjectBeforeRender,\n\tinjectStore,\n\tNgtAnyRecord,\n\tNgtArgs,\n\tNgtAttachable,\n\tNgtThreeElements,\n\tomit,\n\tpick,\n} from 'angular-three';\nimport { BlurPass, MeshReflectorMaterial } from 'angular-three-soba/vanilla-exports';\nimport { mergeInputs } from 'ngxtension/inject-inputs';\nimport * as THREE from 'three';\n\nexport interface NgtsMeshReflectorMaterialOptions extends Partial<NgtThreeElements['ngt-mesh-standard-material']> {\n\tresolution: number;\n\tmixBlur: number;\n\tmixStrength: number;\n\tblur: [number, number] | number;\n\tmirror: number;\n\tminDepthThreshold: number;\n\tmaxDepthThreshold: number;\n\tdepthScale: number;\n\tdepthToBlurRatioBias: number;\n\tdistortion: number;\n\tmixContrast: number;\n\treflectorOffset: number;\n\tdistortionMap?: THREE.Texture;\n}\n\nconst defaultOptions: NgtsMeshReflectorMaterialOptions = {\n\tmixBlur: 0,\n\tmixStrength: 1,\n\tresolution: 256,\n\tblur: [0, 0],\n\tminDepthThreshold: 0.9,\n\tmaxDepthThreshold: 1,\n\tdepthScale: 0,\n\tdepthToBlurRatioBias: 0.25,\n\tmirror: 0,\n\tdistortion: 1,\n\tmixContrast: 1,\n\treflectorOffset: 0,\n};\n\n@Component({\n\tselector: 'ngts-mesh-reflector-material',\n\ttemplate: `\n\t\t<ngt-primitive #material *args=\"[material()]\" [attach]=\"attach()\">\n\t\t\t<ng-content />\n\t\t</ngt-primitive>\n\t`,\n\tschemas: [CUSTOM_ELEMENTS_SCHEMA],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\timports: [NgtArgs],\n})\nexport class NgtsMeshReflectorMaterial {\n\tattach = input<NgtAttachable>('material');\n\toptions = input(defaultOptions, { transform: mergeInputs(defaultOptions) });\n\tprivate parameters = omit(this.options, [\n\t\t'distortionMap',\n\t\t'resolution',\n\t\t'mixBlur',\n\t\t'mixStrength',\n\t\t'blur',\n\t\t'minDepthThreshold',\n\t\t'maxDepthThreshold',\n\t\t'depthScale',\n\t\t'depthToBlurRatioBias',\n\t\t'mirror',\n\t\t'distortion',\n\t\t'mixContrast',\n\t\t'reflectorOffset',\n\t]);\n\n\tprivate store = injectStore();\n\n\tmaterialRef = viewChild<ElementRef<MeshReflectorMaterial>>('material');\n\n\tprivate reflectOptions = pick(this.options, [\n\t\t'distortionMap',\n\t\t'resolution',\n\t\t'mixBlur',\n\t\t'mixStrength',\n\t\t'blur',\n\t\t'minDepthThreshold',\n\t\t'maxDepthThreshold',\n\t\t'depthScale',\n\t\t'depthToBlurRatioBias',\n\t\t'mirror',\n\t\t'distortion',\n\t\t'mixContrast',\n\t\t'reflectorOffset',\n\t]);\n\n\tprivate blur = pick(this.reflectOptions, 'blur');\n\n\tprivate normalizedBlur = computed(() => {\n\t\tconst blur = this.blur();\n\t\treturn Array.isArray(blur) ? blur : [blur, blur];\n\t});\n\tprivate hasBlur = computed(() => this.normalizedBlur()[0] + this.normalizedBlur()[1] > 0);\n\n\tprivate reflectorPlane = new THREE.Plane();\n\tprivate normal = new THREE.Vector3();\n\tprivate reflectorWorldPosition = new THREE.Vector3();\n\tprivate cameraWorldPosition = new THREE.Vector3();\n\tprivate rotationMatrix = new THREE.Matrix4();\n\tprivate lookAtPosition = new THREE.Vector3(0, 0, -1);\n\tprivate clipPlane = new THREE.Vector4();\n\tprivate view = new THREE.Vector3();\n\tprivate target = new THREE.Vector3();\n\tprivate q = new THREE.Vector4();\n\tprivate textureMatrix = new THREE.Matrix4();\n\tprivate virtualCamera = new THREE.PerspectiveCamera();\n\n\tprivate reflectState = computed(() => {\n\t\tconst [\n\t\t\tgl,\n\t\t\t{\n\t\t\t\tresolution,\n\t\t\t\tminDepthThreshold,\n\t\t\t\tmaxDepthThreshold,\n\t\t\t\tdepthScale,\n\t\t\t\tdepthToBlurRatioBias,\n\t\t\t\tmirror,\n\t\t\t\tmixBlur,\n\t\t\t\tmixStrength,\n\t\t\t\tdistortion,\n\t\t\t\tdistortionMap,\n\t\t\t\tmixContrast,\n\t\t\t},\n\t\t\tblur,\n\t\t\thasBlur,\n\t\t] = [this.store.gl(), this.reflectOptions(), this.normalizedBlur(), this.hasBlur()];\n\n\t\tconst renderTargetParameters = {\n\t\t\tminFilter: THREE.LinearFilter,\n\t\t\tmagFilter: THREE.LinearFilter,\n\t\t\ttype: THREE.HalfFloatType,\n\t\t};\n\n\t\tconst fbo1 = new THREE.WebGLRenderTarget(resolution, resolution, renderTargetParameters);\n\t\tfbo1.depthBuffer = true;\n\t\tfbo1.depthTexture = new THREE.DepthTexture(resolution, resolution);\n\t\tfbo1.depthTexture.format = THREE.DepthFormat;\n\t\tfbo1.depthTexture.type = THREE.UnsignedShortType;\n\t\tconst fbo2 = new THREE.WebGLRenderTarget(resolution, resolution, renderTargetParameters);\n\n\t\tconst blurPass = new BlurPass({\n\t\t\tgl,\n\t\t\tresolution,\n\t\t\twidth: blur[0],\n\t\t\theight: blur[1],\n\t\t\tminDepthThreshold,\n\t\t\tmaxDepthThreshold,\n\t\t\tdepthScale,\n\t\t\tdepthToBlurRatioBias,\n\t\t});\n\n\t\tconst defines: NgtAnyRecord = {};\n\n\t\tif (hasBlur) {\n\t\t\tdefines['USE_BLUR'] = '';\n\t\t}\n\n\t\tif (depthScale > 0) {\n\t\t\tdefines['USE_DEPTH'] = '';\n\t\t}\n\n\t\tif (distortionMap) {\n\t\t\tdefines['USE_DISTORTION'] = '';\n\t\t}\n\n\t\tconst reflectorParameters = {\n\t\t\tmirror,\n\t\t\ttextureMatrix: this.textureMatrix,\n\t\t\tmixBlur,\n\t\t\ttDiffuse: fbo1.texture,\n\t\t\ttDepth: fbo1.depthTexture,\n\t\t\ttDiffuseBlur: fbo2.texture,\n\t\t\thasBlur,\n\t\t\tmixStrength,\n\t\t\tminDepthThreshold,\n\t\t\tmaxDepthThreshold,\n\t\t\tdepthScale,\n\t\t\tdepthToBlurRatioBias,\n\t\t\tdistortion,\n\t\t\tdistortionMap,\n\t\t\tmixContrast,\n\t\t\tdefines,\n\t\t};\n\n\t\treturn { fbo1, fbo2, blurPass, reflectorParameters };\n\t});\n\n\tprivate definesKey = computed(() => {\n\t\tconst defines = this.reflectState().reflectorParameters.defines;\n\t\treturn Object.entries(defines).reduce((acc, [key, value]) => (value != null ? `${acc} ${key}` : acc), '');\n\t});\n\n\tmaterial = computed(() => {\n\t\tconst prevMaterial = untracked(this.materialRef)?.nativeElement;\n\n\t\tif (prevMaterial) {\n\t\t\tprevMaterial.dispose();\n\t\t\tdelete (prevMaterial as NgtAnyRecord)['__ngt__'];\n\t\t\tdelete (prevMaterial as NgtAnyRecord)['__ngt_renderer__'];\n\t\t}\n\n\t\t// tracking defines key so that the material is recreated when the defines change\n\t\tthis.definesKey();\n\t\treturn new MeshReflectorMaterial();\n\t});\n\n\tconstructor() {\n\t\teffect(() => {\n\t\t\tconst material = this.materialRef()?.nativeElement;\n\t\t\tif (!material) return;\n\t\t\tconst { reflectorParameters } = this.reflectState();\n\t\t\tapplyProps(material, { ...reflectorParameters, ...this.parameters() });\n\t\t});\n\n\t\tinject(DestroyRef).onDestroy(() => {\n\t\t\tconst material = this.materialRef()?.nativeElement;\n\t\t\tif (material) {\n\t\t\t\tmaterial.dispose();\n\t\t\t\tdelete (material as NgtAnyRecord)['__ngt__'];\n\t\t\t\tdelete (material as NgtAnyRecord)['__ngt_renderer__'];\n\t\t\t}\n\t\t});\n\n\t\tinjectBeforeRender(({ gl, scene }) => {\n\t\t\tconst material = this.materialRef()?.nativeElement;\n\t\t\tif (!material) return;\n\n\t\t\tconst instanceState = getInstanceState(material);\n\t\t\tif (!instanceState) return;\n\n\t\t\tconst parent = Reflect.get(material, 'parent') ?? untracked(instanceState.parent);\n\t\t\tif (!parent) return;\n\n\t\t\tconst { fbo1, fbo2, blurPass } = this.reflectState();\n\t\t\tconst hasBlur = this.hasBlur();\n\n\t\t\tparent.visible = false;\n\t\t\tconst currentXrEnabled = gl.xr.enabled;\n\t\t\tconst currentShadowAutoUpdate = gl.shadowMap.autoUpdate;\n\t\t\tthis.beforeRender();\n\t\t\tgl.xr.enabled = false;\n\t\t\tgl.shadowMap.autoUpdate = false;\n\t\t\tgl.setRenderTarget(fbo1);\n\t\t\tgl.state.buffers.depth.setMask(true);\n\t\t\tif (!gl.autoClear) gl.clear();\n\t\t\tgl.render(scene, this.virtualCamera);\n\t\t\tif (hasBlur) blurPass.render(gl, fbo1, fbo2);\n\t\t\tgl.xr.enabled = currentXrEnabled;\n\t\t\tgl.shadowMap.autoUpdate = currentShadowAutoUpdate;\n\t\t\tparent.visible = true;\n\t\t\tgl.setRenderTarget(null);\n\t\t});\n\t}\n\n\tprivate beforeRender() {\n\t\tconst material = this.materialRef()?.nativeElement;\n\t\tif (!material) return;\n\n\t\tconst instanceState = getInstanceState(material);\n\t\tif (!instanceState) return;\n\n\t\tconst parent = Reflect.get(material, 'parent') ?? untracked(instanceState.parent);\n\t\tif (!parent) return;\n\n\t\tconst { camera } = this.store.snapshot;\n\t\tconst { reflectorOffset } = untracked(this.reflectOptions);\n\n\t\tthis.reflectorWorldPosition.setFromMatrixPosition(parent.matrixWorld);\n\t\tthis.cameraWorldPosition.setFromMatrixPosition(camera.matrixWorld);\n\t\tthis.rotationMatrix.extractRotation(parent.matrixWorld);\n\t\tthis.normal.set(0, 0, 1);\n\t\tthis.normal.applyMatrix4(this.rotationMatrix);\n\t\tthis.reflectorWorldPosition.addScaledVector(this.normal, reflectorOffset);\n\t\tthis.view.subVectors(this.reflectorWorldPosition, this.cameraWorldPosition);\n\t\t// Avoid rendering when reflector is facing away\n\t\tif (this.view.dot(this.normal) > 0) return;\n\t\tthis.view.reflect(this.normal).negate();\n\t\tthis.view.add(this.reflectorWorldPosition);\n\t\tthis.rotationMatrix.extractRotation(camera.matrixWorld);\n\t\tthis.lookAtPosition.set(0, 0, -1);\n\t\tthis.lookAtPosition.applyMatrix4(this.rotationMatrix);\n\t\tthis.lookAtPosition.add(this.cameraWorldPosition);\n\t\tthis.target.subVectors(this.reflectorWorldPosition, this.lookAtPosition);\n\t\tthis.target.reflect(this.normal).negate();\n\t\tthis.target.add(this.reflectorWorldPosition);\n\t\tthis.virtualCamera.position.copy(this.view);\n\t\tthis.virtualCamera.up.set(0, 1, 0);\n\t\tthis.virtualCamera.up.applyMatrix4(this.rotationMatrix);\n\t\tthis.virtualCamera.up.reflect(this.normal);\n\t\tthis.virtualCamera.lookAt(this.target);\n\t\tthis.virtualCamera.far = camera.far; // Used in WebGLBackground\n\t\tthis.virtualCamera.updateMatrixWorld();\n\t\tthis.virtualCamera.projectionMatrix.copy(camera.projectionMatrix);\n\t\t// Update the texture matrix\n\t\tthis.textureMatrix.set(0.5, 0.0, 0.0, 0.5, 0.0, 0.5, 0.0, 0.5, 0.0, 0.0, 0.5, 0.5, 0.0, 0.0, 0.0, 1.0);\n\t\tthis.textureMatrix.multiply(this.virtualCamera.projectionMatrix);\n\t\tthis.textureMatrix.multiply(this.virtualCamera.matrixWorldInverse);\n\t\tthis.textureMatrix.multiply(parent.matrixWorld);\n\t\t// Now update projection matrix with new clip plane, implementing code from: http://www.terathon.com/code/oblique.html\n\t\t// Paper explaining this technique: http://www.terathon.com/lengyel/Lengyel-Oblique.pdf\n\t\tthis.reflectorPlane.setFromNormalAndCoplanarPoint(this.normal, this.reflectorWorldPosition);\n\t\tthis.reflectorPlane.applyMatrix4(this.virtualCamera.matrixWorldInverse);\n\t\tthis.clipPlane.set(\n\t\t\tthis.reflectorPlane.normal.x,\n\t\t\tthis.reflectorPlane.normal.y,\n\t\t\tthis.reflectorPlane.normal.z,\n\t\t\tthis.reflectorPlane.constant,\n\t\t);\n\t\tconst projectionMatrix = this.virtualCamera.projectionMatrix;\n\t\tthis.q.x = (Math.sign(this.clipPlane.x) + projectionMatrix.elements[8]) / projectionMatrix.elements[0];\n\t\tthis.q.y = (Math.sign(this.clipPlane.y) + projectionMatrix.elements[9]) / projectionMatrix.elements[5];\n\t\tthis.q.z = -1.0;\n\t\tthis.q.w = (1.0 + projectionMatrix.elements[10]) / projectionMatrix.elements[14];\n\t\t// Calculate the scaled plane vector\n\t\tthis.clipPlane.multiplyScalar(2.0 / this.clipPlane.dot(this.q));\n\t\t// Replacing the third row of the projection matrix\n\t\tprojectionMatrix.elements[2] = this.clipPlane.x;\n\t\tprojectionMatrix.elements[6] = this.clipPlane.y;\n\t\tprojectionMatrix.elements[10] = this.clipPlane.z + 1.0;\n\t\tprojectionMatrix.elements[14] = this.clipPlane.w;\n\t}\n}\n","import {\n\tChangeDetectionStrategy,\n\tComponent,\n\tcomputed,\n\tCUSTOM_ELEMENTS_SCHEMA,\n\tDestroyRef,\n\teffect,\n\tElementRef,\n\tinject,\n\tinput,\n\tuntracked,\n\tviewChild,\n} from '@angular/core';\nimport {\n\tgetInstanceState,\n\tinjectBeforeRender,\n\tinjectStore,\n\tis,\n\tNgtAnyRecord,\n\tNgtArgs,\n\tNgtAttachable,\n\tNgtThreeElements,\n\tomit,\n\tpick,\n} from 'angular-three';\nimport { MeshRefractionMaterial } from 'angular-three-soba/shaders';\nimport { mergeInputs } from 'ngxtension/inject-inputs';\nimport * as THREE from 'three';\nimport { MeshBVH, MeshBVHUniformStruct, SAH } from 'three-mesh-bvh';\n\nexport interface NgtsMeshRefractionMaterialOptions extends Partial<NgtThreeElements['ngt-shader-material']> {\n\t/** Number of ray-cast bounces, it can be expensive to have too many, 2 */\n\tbounces: number;\n\t/** Refraction index, 2.4 */\n\tior: number;\n\t/** Fresnel (strip light), 0 */\n\tfresnel: number;\n\t/** RGB shift intensity, can be expensive, 0 */\n\taberrationStrength: number;\n\t/** Color, white */\n\tcolor: THREE.ColorRepresentation;\n\t/** If this is on it uses fewer ray casts for the RGB shift sacrificing physical accuracy, true */\n\tfastChroma: boolean;\n}\n\nconst defaultOptions: NgtsMeshRefractionMaterialOptions = {\n\tbounces: 2,\n\tior: 2.4,\n\tfresnel: 0,\n\taberrationStrength: 0,\n\tcolor: 'white',\n\tfastChroma: true,\n};\n\n@Component({\n\tselector: 'ngts-mesh-refraction-material',\n\ttemplate: `\n\t\t<ngt-primitive\n\t\t\t*args=\"[material()]\"\n\t\t\t#material\n\t\t\t[attach]=\"attach()\"\n\t\t\t[parameters]=\"parameters()\"\n\t\t\t[envMap]=\"envMap()\"\n\t\t\t[aberrationStrength]=\"aberrationStrength()\"\n\t\t\t[resolution]=\"resolution()\"\n\t\t\t[defines]=\"defines()\"\n\t\t>\n\t\t\t<ng-content />\n\t\t</ngt-primitive>\n\t`,\n\tschemas: [CUSTOM_ELEMENTS_SCHEMA],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\timports: [NgtArgs],\n})\nexport class NgtsMeshRefractionMaterial {\n\tenvMap = input.required<THREE.CubeTexture | THREE.Texture>();\n\tattach = input<NgtAttachable>('material');\n\toptions = input(defaultOptions, { transform: mergeInputs(defaultOptions) });\n\tprotected parameters = omit(this.options, ['fastChroma', 'aberrationStrength']);\n\n\tprivate fastChroma = pick(this.options, 'fastChroma');\n\tprotected aberrationStrength = pick(this.options, 'aberrationStrength');\n\n\tmaterialRef = viewChild<ElementRef<InstanceType<typeof MeshRefractionMaterial>>>('material');\n\n\tprivate store = injectStore();\n\n\tprotected resolution = computed(() => [this.store.size.width(), this.store.size.height()]);\n\tprotected defines = computed(() => {\n\t\tconst _defines = {} as { [key: string]: string };\n\t\tconst [envMap, aberrationStrength, fastChroma] = [\n\t\t\tuntracked(this.envMap),\n\t\t\tthis.aberrationStrength(),\n\t\t\tthis.fastChroma(),\n\t\t];\n\t\tconst isCubeMap = is.three<THREE.CubeTexture>(envMap, 'isCubeTexture');\n\n\t\tconst w = (isCubeMap ? envMap.image[0]?.width : envMap.image.width) ?? 1024;\n\t\tconst cubeSize = w / 4;\n\t\tconst _lodMax = Math.floor(Math.log2(cubeSize));\n\t\tconst _cubeSize = Math.pow(2, _lodMax);\n\t\tconst width = 3 * Math.max(_cubeSize, 16 * 7);\n\t\tconst height = 4 * _cubeSize;\n\n\t\tif (isCubeMap) _defines['ENVMAP_TYPE_CUBEM'] = '';\n\t\t_defines['CUBEUV_TEXEL_WIDTH'] = `${1.0 / width}`;\n\t\t_defines['CUBEUV_TEXEL_HEIGHT'] = `${1.0 / height}`;\n\t\t_defines['CUBEUV_MAX_MIP'] = `${_lodMax}.0`;\n\n\t\t// Add defines from chromatic aberration\n\t\tif (aberrationStrength > 0) _defines['CHROMATIC_ABERRATIONS'] = '';\n\t\tif (fastChroma) _defines['FAST_CHROMA'] = '';\n\n\t\treturn _defines;\n\t});\n\n\tprivate defineKeys = computed(() => {\n\t\treturn Object.keys(this.defines()).join(' ');\n\t});\n\n\tprotected material = computed(() => {\n\t\tconst prevMaterial = untracked(this.materialRef)?.nativeElement;\n\n\t\tif (prevMaterial) {\n\t\t\tprevMaterial.dispose();\n\t\t\tdelete (prevMaterial as NgtAnyRecord)['__ngt__'];\n\t\t\tdelete (prevMaterial as NgtAnyRecord)['__ngt_renderer__'];\n\t\t}\n\n\t\t// track by this.defineKeys\n\t\tthis.defineKeys();\n\t\treturn new MeshRefractionMaterial();\n\t});\n\n\tconstructor() {\n\t\teffect(() => {\n\t\t\tconst material = this.materialRef()?.nativeElement;\n\t\t\tif (!material) return;\n\n\t\t\tconst instanceState = getInstanceState(material);\n\t\t\tif (!instanceState) return;\n\n\t\t\tconst parent = untracked(instanceState.parent);\n\t\t\tconst geometry = (parent as unknown as THREE.Mesh).geometry;\n\t\t\tif (geometry) {\n\t\t\t\tconst bvh = new MeshBVHUniformStruct();\n\t\t\t\tbvh.updateFrom(new MeshBVH(geometry.clone().toNonIndexed(), { strategy: SAH }));\n\t\t\t\tObject.assign(material, { bvh });\n\t\t\t}\n\t\t});\n\n\t\tinjectBeforeRender(({ camera }) => {\n\t\t\tconst material = this.materialRef()?.nativeElement;\n\t\t\tif (material) {\n\t\t\t\tObject.assign(material, {\n\t\t\t\t\tviewMatrixInverse: camera.matrixWorld,\n\t\t\t\t\tprojectionMatrixInverse: camera.projectionMatrixInverse,\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\n\t\tinject(DestroyRef).onDestroy(() => {\n\t\t\tconst material = this.materialRef()?.nativeElement;\n\t\t\tif (material) {\n\t\t\t\tmaterial.dispose();\n\t\t\t\tdelete (material as NgtAnyRecord)['__ngt__'];\n\t\t\t\tdelete (material as NgtAnyRecord)['__ngt_renderer__'];\n\t\t\t}\n\t\t});\n\t}\n}\n","import {\n\tChangeDetectionStrategy,\n\tComponent,\n\tcomputed,\n\tCUSTOM_ELEMENTS_SCHEMA,\n\tDestroyRef,\n\tElementRef,\n\tinject,\n\tinput,\n\tuntracked,\n\tviewChild,\n} from '@angular/core';\nimport {\n\tgetInstanceState,\n\tinjectBeforeRender,\n\tNgtAnyRecord,\n\tNgtArgs,\n\tNgtAttachable,\n\tNgtThreeElements,\n\tomit,\n\tpick,\n} from 'angular-three';\nimport { injectFBO } from 'angular-three-soba/misc';\nimport { MeshDiscardMaterial, MeshTransmissionMaterial } from 'angular-three-soba/vanilla-exports';\nimport { mergeInputs } from 'ngxtension/inject-inputs';\nimport * as THREE from 'three';\n\nexport type MeshTransmissionMaterialOptions = ConstructorParameters<typeof MeshTransmissionMaterial>[0];\n\nexport type NgtsMeshTransmissionMaterialOptions = Partial<NgtThreeElements['ngt-mesh-physical-material']> &\n\tOmit<MeshTransmissionMaterialOptions, 'buffer' | 'anisotropicBlur' | 'samples' | 'transmissionSampler'> & {\n\t\tanisotropicBlur?: number;\n\t\tbuffer?: THREE.Texture;\n\t\t/** transmissionSampler, you can use the threejs transmission sampler texture that is\n\t\t * generated once for all transmissive materials. The upside is that it can be faster if you\n\t\t * use multiple MeshPhysical and Transmission materials, the downside is that transmissive materials\n\t\t * using this can't see other transparent or transmissive objects, default: false */\n\t\ttransmissionSampler: boolean;\n\t\t/** Render the backside of the material (more cost, better results), default: false */\n\t\tbackside: boolean;\n\t\t/** Backside thickness (when backside is true), default: 0 */\n\t\tbacksideThickness: number;\n\t\tbacksideEnvMapIntensity: number;\n\t\t/** Resolution of the local buffer, default: undefined (fullscreen) */\n\t\tresolution?: number;\n\t\t/** Resolution of the local buffer for backfaces, default: undefined (fullscreen) */\n\t\tbacksideResolution?: number;\n\t\t/** Refraction samples, default: 6 */\n\t\tsamples: number;\n\t\t/** Buffer scene background (can be a texture, a cubetexture or a color), default: null */\n\t\tbackground?: THREE.Texture | THREE.Color;\n\t};\n\nconst defaultOptions: NgtsMeshTransmissionMaterialOptions = {\n\ttransmissionSampler: false,\n\tbackside: false,\n\tside: THREE.FrontSide,\n\ttransmission: 1,\n\tthickness: 0,\n\tbacksideThickness: 0,\n\tbacksideEnvMapIntensity: 1,\n\tsamples: 10,\n};\n\n@Component({\n\tselector: 'ngts-mesh-transmission-material',\n\ttemplate: `\n\t\t<ngt-primitive\n\t\t\t*args=\"[material()]\"\n\t\t\t#material\n\t\t\t[attach]=\"attach()\"\n\t\t\t[parameters]=\"parameters()\"\n\t\t\t[_transmission]=\"transmission()\"\n\t\t\t[transmission]=\"transmissionSampler() ? transmission() : 0\"\n\t\t\t[buffer]=\"bufferTexture()\"\n\t\t\t[anisotropicBlur]=\"anisotropicBlurOption()\"\n\t\t\t[side]=\"side()\"\n\t\t\t[thickness]=\"thickness()\"\n\t\t>\n\t\t\t<ng-content />\n\t\t</ngt-primitive>\n\t`,\n\tschemas: [CUSTOM_ELEMENTS_SCHEMA],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\timports: [NgtArgs],\n})\nexport class NgtsMeshTransmissionMaterial {\n\tattach = input<NgtAttachable>('material');\n\toptions = input(defaultOptions, { transform: mergeInputs(defaultOptions) });\n\tprotected parameters = omit(this.options, [\n\t\t'buffer',\n\t\t'transmissionSampler',\n\t\t'backside',\n\t\t'side',\n\t\t'transmission',\n\t\t'thickness',\n\t\t'backsideThickness',\n\t\t'backsideEnvMapIntensity',\n\t\t'samples',\n\t\t'resolution',\n\t\t'backsideResolution',\n\t\t'background',\n\t\t'anisotropy',\n\t\t'anisotropicBlur',\n\t]);\n\n\tprivate resolution = pick(this.options, 'resolution');\n\tprivate backsideResolution = pick(this.options, 'backsideResolution');\n\tprivate samples = pick(this.options, 'samples');\n\tprivate buffer = pick(this.options, 'buffer');\n\tprivate anisotropy = pick(this.options, 'anisotropy');\n\tprivate anisotropicBlur = pick(this.options, 'anisotropicBlur');\n\tprivate background = pick(this.options, 'background');\n\tprivate backside = pick(this.options, 'backside');\n\tprivate backsideThickness = pick(this.options, 'backsideThickness');\n\tprivate backsideEnvMapIntensity = pick(this.options, 'backsideEnvMapIntensity');\n\n\tprotected transmissionSampler = pick(this.options, 'transmissionSampler');\n\tprotected transmission = pick(this.options, 'transmission');\n\tprotected thickness = pick(this.options, 'thickness');\n\tprotected side = pick(this.options, 'side');\n\n\tmaterialRef = viewChild<ElementRef<MeshTransmissionMaterial & MeshTransmissionMaterialOptions>>('material');\n\n\tprivate backResolution = computed(() => this.backsideResolution() || this.resolution());\n\n\tprivate fboBack = injectFBO(() => ({ width: this.backResolution() }));\n\tprivate fboMain = injectFBO(() => ({ width: this.resolution() }));\n\n\tprotected bufferTexture = computed(() => this.buffer() || this.fboMain().texture);\n\tprotected anisotropicBlurOption = computed(() => this.anisotropicBlur() || this.anisotropy());\n\n\tprivate discardMaterial = new MeshDiscardMaterial();\n\n\tprotected material = computed(() => {\n\t\tconst previousMaterial = untracked(this.materialRef)?.nativeElement;\n\n\t\tif (previousMaterial) {\n\t\t\tpreviousMaterial.dispose();\n\t\t\tdelete (previousMaterial as NgtAnyRecord)['__ngt__'];\n\t\t\tdelete (previousMaterial as NgtAnyRecord)['__ngt_renderer__'];\n\t\t}\n\n\t\tconst [samples, transmissionSampler] = [this.samples(), this.transmissionSampler()];\n\t\treturn new MeshTransmissionMaterial({ samples, transmissionSampler });\n\t});\n\n\tconstructor() {\n\t\tinject(DestroyRef).onDestroy(() => {\n\t\t\tconst material = this.materialRef()?.nativeElement;\n\t\t\tif (material) {\n\t\t\t\tmaterial.dispose();\n\t\t\t\tdelete (material as NgtAnyRecord)['__ngt__'];\n\t\t\t\tdelete (material as NgtAnyRecord)['__ngt_renderer__'];\n\t\t\t}\n\t\t});\n\n\t\tlet oldBg: THREE.Texture | THREE.Color | null;\n\t\tlet oldEnvMapIntensity: number | undefined;\n\t\tlet oldTone: THREE.ToneMapping | undefined;\n\t\tlet parent: THREE.Mesh | undefined;\n\t\tinjectBeforeRender(({ clock, gl, scene, camera }) => {\n\t\t\tconst material = this.materialRef()?.nativeElement;\n\t\t\tif (!material) return;\n\n\t\t\tconst [\n\t\t\t\tfboMain,\n\t\t\t\tfboBack,\n\t\t\t\ttransmissionSampler,\n\t\t\t\tbackground,\n\t\t\t\tbackside,\n\t\t\t\tbacksideThickness,\n\t\t\t\tbacksideEnvMapIntensity,\n\t\t\t\tthickness,\n\t\t\t\tside,\n\t\t\t] = [\n\t\t\t\tthis.fboMain(),\n\t\t\t\tthis.fboBack(),\n\t\t\t\tthis.transmissionSampler(),\n\t\t\t\tthis.background(),\n\t\t\t\tthis.backside(),\n\t\t\t\tthis.backsideThickness(),\n\t\t\t\tthis.backsideEnvMapIntensity(),\n\t\t\t\tthis.thickness(),\n\t\t\t\tthis.side(),\n\t\t\t];\n\n\t\t\tmaterial.time = clock.getElapsedTime();\n\t\t\t// Render only if the buffer matches the built-in and no transmission sampler is set\n\t\t\t// @ts-expect-error - we know material.buffer is not just undefined | null\n\t\t\tif (material.buffer === fboMain.texture && !transmissionSampler) {\n\t\t\t\tparent = getInstanceState(material)?.parent() as unknown as THREE.Mesh;\n\n\t\t\t\tif (parent) {\n\t\t\t\t\t// Save defaults\n\t\t\t\t\toldTone = gl.toneMapping;\n\t\t\t\t\toldBg = scene.background;\n\t\t\t\t\toldEnvMapIntensity = material.envMapIntensity;\n\n\t\t\t\t\t// Switch off tonemapping lest it double tone maps\n\t\t\t\t\t// Save the current background and set the HDR as the new BG\n\t\t\t\t\t// Use discardmaterial, the parent will be invisible, but it's shadows will still be cast\n\t\t\t\t\tgl.toneMapping = THREE.NoToneMapping;\n\t\t\t\t\tif (background) scene.background = background;\n\t\t\t\t\tparent.material = this.discardMaterial;\n\n\t\t\t\t\tif (backside) {\n\t\t\t\t\t\t// Render into the backside buffer\n\t\t\t\t\t\tgl.setRenderTarget(fboBack);\n\t\t\t\t\t\tgl.render(scene, camera);\n\t\t\t\t\t\t// And now prepare the material for the main render using the backside buffer\n\t\t\t\t\t\tparent.material = material;\n\t\t\t\t\t\tObject.assign(parent.material, {\n\t\t\t\t\t\t\tbuffer: fboBack.texture,\n\t\t\t\t\t\t\tthickness: backsideThickness,\n\t\t\t\t\t\t\tside: THREE.BackSide,\n\t\t\t\t\t\t\tenvMapIntensity: backsideEnvMapIntensity,\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\n\t\t\t\t\t// Render into the main buffer\n\t\t\t\t\tgl.setRenderTarget(fboMain);\n\t\t\t\t\tgl.render(scene, camera);\n\n\t\t\t\t\tparent.material = material;\n\t\t\t\t\tObject.assign(parent.material, {\n\t\t\t\t\t\tbuffer: fboMain.texture,\n\t\t\t\t\t\tthickness,\n\t\t\t\t\t\tside,\n\t\t\t\t\t\tenvMapIntensity: oldEnvMapIntensity,\n\t\t\t\t\t});\n\n\t\t\t\t\t// Set old state back\n\t\t\t\t\tscene.background = oldBg;\n\t\t\t\t\tgl.setRenderTarget(null);\n\t\t\t\t\tgl.toneMapping = oldTone;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n}\n","import { ChangeDetectionStrategy, Component, CUSTOM_ELEMENTS_SCHEMA, DestroyRef, inject, input } from '@angular/core';\nimport { injectBeforeRender, NgtArgs, NgtAttachable, NgtThreeElements, omit } from 'angular-three';\nimport { MeshWobbleMaterial, MeshWobbleMaterialParameters } from 'angular-three-soba/vanilla-exports';\nimport { mergeInputs } from 'ngxtension/inject-inputs';\n\nexport interface NgtsMeshWobbleMaterialOptions\n\textends MeshWobbleMaterialParameters,\n\t\tPartial<NgtThreeElements['ngt-mesh-standard-material']> {\n\tspeed: number;\n}\n\nconst defaultOptions: NgtsMeshWobbleMaterialOptions = {\n\tspeed: 1,\n};\n\n@Component({\n\tselector: 'ngts-mesh-wobble-material',\n\ttemplate: `\n\t\t<ngt-primitive *args=\"[material]\" [parameters]=\"parameters()\" [attach]=\"attach()\">\n\t\t\t<ng-content />\n\t\t</ngt-primitive>\n\t`,\n\timports: [NgtArgs],\n\tschemas: [CUSTOM_ELEMENTS_SCHEMA],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class NgtsMeshWobbleMaterial {\n\tattach = input<NgtAttachable>('material');\n\toptions = input(defaultOptions, { transform: mergeInputs(defaultOptions) });\n\tprotected parameters = omit(this.options, ['speed']);\n\n\tprotected material = new MeshWobbleMaterial();\n\n\tconstructor() {\n\t\tinject(DestroyRef).onDestroy(() => this.material.dispose());\n\n\t\tinjectBeforeRender(({ clock }) => {\n\t\t\tconst material = this.material;\n\t\t\tmaterial.time = clock.elapsedTime * this.options().speed;\n\t\t});\n\t}\n}\n","import { ChangeDetectionStrategy, Component, CUSTOM_ELEMENTS_SCHEMA, DestroyRef, inject, input } from '@angular/core';\nimport { NgtArgs, NgtAttachable } from 'angular-three';\nimport { PointMaterial } from 'angular-three-soba/shaders';\nimport * as THREE from 'three';\n\n@Component({\n\tselector: 'ngts-point-material',\n\ttemplate: `\n\t\t<ngt-primitive *args=\"[material]\" [attach]=\"attach()\" [parameters]=\"options()\">\n\t\t\t<ng-content />\n\t\t</ngt-primitive>\n\t`,\n\tschemas: [CUSTOM_ELEMENTS_SCHEMA],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\timports: [NgtArgs],\n})\nexport class NgtsPointMaterial {\n\tattach = input<NgtAttachable>('material');\n\toptions = input({} as THREE.PointsMaterialParameters);\n\n\tprotected material = new PointMaterial(this.options());\n\n\tconstructor() {\n\t\tinject(DestroyRef).onDestroy(() => this.material.dispose());\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["defaultOptions"],"mappings":";;;;;;;;;;;;;;MAwBa,wBAAwB,CAAA;AAwCpC,IAAA,WAAA,GAAA;AAvCA,QAAA,IAAA,CAAA,YAAY,GAAG,KAAK,CAAC,QAAQ,EAAuE;AACpG,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK,CAAgB,UAAU,CAAC;AACzC,QAAA,IAAA,CAAA,OAAO,GAAG,KAAK,CAAC,EAAiF,CAAC;AAClG,QAAA,IAAA,CAAA,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,gBAAgB,EAAE,cAAc,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC;AAEnF,QAAA,IAAA,CAAA,IAAI,GAAG,QAAQ,CAAC,MAAK;AAC5B,YAAA,MAAM,YAAY,GAAG,IAAI,CAAC,YAAY,EAAE;AACxC,YAAA,OAAO,EAAE,CAAC,GAAG,C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,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA;;;;AAIT,CAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAGS,OAAO,EAAA,QAAA,EAAA,mBAAA,EAAA,MAAA,EAAA,CAAA,MAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAEL,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAX7B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,qBAAqB;AAC/B,oBAAA,QAAQ,EAAE;;;;AAIT,CAAA,CAAA;oBACD,OAAO,EAAE,CAAC,sBAAsB,CAAC;oBACjC,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,OAAO,EAAE,CAAC,OAAO,CAAC;AAClB,iBAAA;;;ACfD;;AAEG;;;;"}
|
|
@@ -36,7 +36,7 @@ export interface NgtsMeshPortalMaterialOptions extends Partial<NgtThreeElements[
|
|
|
36
36
|
export declare class NgtsMeshPortalMaterial {
|
|
37
37
|
attach: import("@angular/core").InputSignal<NgtAttachable>;
|
|
38
38
|
options: import("@angular/core").InputSignalWithTransform<NgtsMeshPortalMaterialOptions, "" | Partial<NgtsMeshPortalMaterialOptions>>;
|
|
39
|
-
protected parameters: import("@angular/core").Signal<Omit<NgtsMeshPortalMaterialOptions, "resolution" | "blur" | "
|
|
39
|
+
protected parameters: import("@angular/core").Signal<Omit<NgtsMeshPortalMaterialOptions, "resolution" | "blur" | "events" | "worldUnits" | "eventPriority" | "renderPriority">>;
|
|
40
40
|
protected blur: import("@angular/core").Signal<number>;
|
|
41
41
|
protected eventPriority: import("@angular/core").Signal<number>;
|
|
42
42
|
protected renderPriority: import("@angular/core").Signal<number>;
|
|
@@ -20,7 +20,7 @@ export declare class NgtsMeshRefractionMaterial {
|
|
|
20
20
|
envMap: import("@angular/core").InputSignal<THREE.Texture | THREE.CubeTexture>;
|
|
21
21
|
attach: import("@angular/core").InputSignal<NgtAttachable>;
|
|
22
22
|
options: import("@angular/core").InputSignalWithTransform<NgtsMeshRefractionMaterialOptions, "" | Partial<NgtsMeshRefractionMaterialOptions>>;
|
|
23
|
-
protected parameters: import("@angular/core").Signal<Omit<NgtsMeshRefractionMaterialOptions, "
|
|
23
|
+
protected parameters: import("@angular/core").Signal<Omit<NgtsMeshRefractionMaterialOptions, "aberrationStrength" | "fastChroma">>;
|
|
24
24
|
private fastChroma;
|
|
25
25
|
protected aberrationStrength: import("@angular/core").Signal<number>;
|
|
26
26
|
materialRef: import("@angular/core").Signal<ElementRef<THREE.ShaderMaterial & {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "angular-three-soba",
|
|
3
|
-
"version": "4.0.0-next.
|
|
3
|
+
"version": "4.0.0-next.15",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -31,6 +31,14 @@
|
|
|
31
31
|
"types": "./index.d.ts",
|
|
32
32
|
"default": "./fesm2022/angular-three-soba.mjs"
|
|
33
33
|
},
|
|
34
|
+
"./abstractions": {
|
|
35
|
+
"types": "./abstractions/index.d.ts",
|
|
36
|
+
"default": "./fesm2022/angular-three-soba-abstractions.mjs"
|
|
37
|
+
},
|
|
38
|
+
"./controls": {
|
|
39
|
+
"types": "./controls/index.d.ts",
|
|
40
|
+
"default": "./fesm2022/angular-three-soba-controls.mjs"
|
|
41
|
+
},
|
|
34
42
|
"./cameras": {
|
|
35
43
|
"types": "./cameras/index.d.ts",
|
|
36
44
|
"default": "./fesm2022/angular-three-soba-cameras.mjs"
|
|
@@ -39,18 +47,10 @@
|
|
|
39
47
|
"types": "./gizmos/index.d.ts",
|
|
40
48
|
"default": "./fesm2022/angular-three-soba-gizmos.mjs"
|
|
41
49
|
},
|
|
42
|
-
"./controls": {
|
|
43
|
-
"types": "./controls/index.d.ts",
|
|
44
|
-
"default": "./fesm2022/angular-three-soba-controls.mjs"
|
|
45
|
-
},
|
|
46
50
|
"./loaders": {
|
|
47
51
|
"types": "./loaders/index.d.ts",
|
|
48
52
|
"default": "./fesm2022/angular-three-soba-loaders.mjs"
|
|
49
53
|
},
|
|
50
|
-
"./abstractions": {
|
|
51
|
-
"types": "./abstractions/index.d.ts",
|
|
52
|
-
"default": "./fesm2022/angular-three-soba-abstractions.mjs"
|
|
53
|
-
},
|
|
54
54
|
"./materials": {
|
|
55
55
|
"types": "./materials/index.d.ts",
|
|
56
56
|
"default": "./fesm2022/angular-three-soba-materials.mjs"
|
|
@@ -19,7 +19,7 @@ export interface NgtsInstancesOptions extends Partial<NgtThreeElements['ngt-inst
|
|
|
19
19
|
export declare class NgtsInstances {
|
|
20
20
|
protected readonly DynamicDrawUsage: 35048;
|
|
21
21
|
options: import("@angular/core").InputSignalWithTransform<NgtsInstancesOptions, "" | Partial<NgtsInstancesOptions>>;
|
|
22
|
-
protected parameters: import("@angular/core").Signal<Omit<NgtsInstancesOptions, "
|
|
22
|
+
protected parameters: import("@angular/core").Signal<Omit<NgtsInstancesOptions, "range" | "limit" | "frames">>;
|
|
23
23
|
instancedMeshRef: import("@angular/core").Signal<ElementRef<THREE.InstancedMesh<THREE.BufferGeometry<THREE.NormalBufferAttributes>, THREE.Material | THREE.Material[], THREE.InstancedMeshEventMap>>>;
|
|
24
24
|
private limit;
|
|
25
25
|
protected buffers: import("@angular/core").Signal<{
|
|
@@ -29,7 +29,7 @@ export interface NgtsPointsInstancesOptions extends Partial<NgtThreeElements['ng
|
|
|
29
29
|
}
|
|
30
30
|
export declare class NgtsPointsInstances {
|
|
31
31
|
options: import("@angular/core").InputSignalWithTransform<NgtsPointsInstancesOptions, "" | Partial<NgtsPointsInstancesOptions>>;
|
|
32
|
-
parameters: import("@angular/core").Signal<Omit<NgtsPointsInstancesOptions, "
|
|
32
|
+
parameters: import("@angular/core").Signal<Omit<NgtsPointsInstancesOptions, "range" | "limit">>;
|
|
33
33
|
pointsRef: import("@angular/core").Signal<ElementRef<THREE.Points<THREE.BufferGeometry<THREE.NormalBufferAttributes>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>>>;
|
|
34
34
|
private limit;
|
|
35
35
|
buffers: import("@angular/core").Signal<{
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as THREE from 'three';
|
|
2
2
|
export declare const MeshRefractionMaterial: (new (parameters?: (THREE.ShaderMaterialParameters & Partial<{
|
|
3
|
-
[name: string]: number | boolean | any[] | THREE.CubeTexture | THREE.Texture | Int32Array<ArrayBufferLike> | Float32Array<ArrayBufferLike> | THREE.Matrix4 | THREE.Matrix3 | THREE.Quaternion | THREE.Vector4 | THREE.Vector3 | THREE.Vector2 |
|
|
3
|
+
[name: string]: number | boolean | any[] | THREE.Color | THREE.CubeTexture | THREE.Texture | Int32Array<ArrayBufferLike> | Float32Array<ArrayBufferLike> | THREE.Matrix4 | THREE.Matrix3 | THREE.Quaternion | THREE.Vector4 | THREE.Vector3 | THREE.Vector2 | null;
|
|
4
4
|
}>) | undefined) => THREE.ShaderMaterial & {
|
|
5
|
-
[name: string]: number | boolean | any[] | THREE.CubeTexture | THREE.Texture | Int32Array<ArrayBufferLike> | Float32Array<ArrayBufferLike> | THREE.Matrix4 | THREE.Matrix3 | THREE.Quaternion | THREE.Vector4 | THREE.Vector3 | THREE.Vector2 |
|
|
5
|
+
[name: string]: number | boolean | any[] | THREE.Color | THREE.CubeTexture | THREE.Texture | Int32Array<ArrayBufferLike> | Float32Array<ArrayBufferLike> | THREE.Matrix4 | THREE.Matrix3 | THREE.Quaternion | THREE.Vector4 | THREE.Vector3 | THREE.Vector2 | null;
|
|
6
6
|
}) & {
|
|
7
7
|
key: string;
|
|
8
8
|
};
|
|
@@ -30,7 +30,7 @@ export declare class NgtsAccumulativeShadows {
|
|
|
30
30
|
nullTraversal: () => null;
|
|
31
31
|
Math: Math;
|
|
32
32
|
options: import("@angular/core").InputSignalWithTransform<NgtsAccumulativeShadowsOptions, "" | Partial<NgtsAccumulativeShadowsOptions>>;
|
|
33
|
-
parameters: import("@angular/core").Signal<Omit<NgtsAccumulativeShadowsOptions, "scale" | "
|
|
33
|
+
parameters: import("@angular/core").Signal<Omit<NgtsAccumulativeShadowsOptions, "scale" | "frames" | "blend" | "limit" | "temporal" | "opacity" | "alphaTest" | "color" | "colorBlend" | "resolution" | "toneMapped">>;
|
|
34
34
|
lightsRef: import("@angular/core").Signal<ElementRef<THREE.Group<THREE.Object3DEventMap>>>;
|
|
35
35
|
planeRef: import("@angular/core").Signal<ElementRef<THREE.Mesh<THREE.PlaneGeometry, THREE.ShaderMaterial & {
|
|
36
36
|
map: THREE.Texture | null;
|
package/staging/lib/center.d.ts
CHANGED
|
@@ -38,12 +38,12 @@ export interface NgtsCenterOptions {
|
|
|
38
38
|
}
|
|
39
39
|
export declare class NgtsCenter {
|
|
40
40
|
options: import("@angular/core").InputSignalWithTransform<Partial<import("angular-three").NgtThreeElement<typeof THREE.Group>> & NgtsCenterOptions, "" | Partial<Partial<import("angular-three").NgtThreeElement<typeof THREE.Group>> & NgtsCenterOptions>>;
|
|
41
|
-
protected parameters: import("@angular/core").Signal<Omit<Partial<import("angular-three").NgtThreeElement<typeof THREE.Group>> & NgtsCenterOptions, "left" | "right" | "top" | "bottom" | "disable" | "
|
|
41
|
+
protected parameters: import("@angular/core").Signal<Omit<Partial<import("angular-three").NgtThreeElement<typeof THREE.Group>> & NgtsCenterOptions, "left" | "right" | "top" | "bottom" | "disable" | "precise" | "cacheKey" | "front" | "back" | "disableX" | "disableY" | "disableZ">>;
|
|
42
42
|
centered: import("@angular/core").OutputEmitterRef<NgtsCenterState>;
|
|
43
43
|
groupRef: import("@angular/core").Signal<ElementRef<THREE.Group<THREE.Object3DEventMap>>>;
|
|
44
44
|
private outerRef;
|
|
45
45
|
private innerRef;
|
|
46
|
-
centerOptions: import("@angular/core").Signal<Pick<Partial<import("angular-three").NgtThreeElement<typeof THREE.Group>> & NgtsCenterOptions, "left" | "right" | "top" | "bottom" | "disable" | "
|
|
46
|
+
centerOptions: import("@angular/core").Signal<Pick<Partial<import("angular-three").NgtThreeElement<typeof THREE.Group>> & NgtsCenterOptions, "left" | "right" | "top" | "bottom" | "disable" | "precise" | "cacheKey" | "front" | "back" | "disableX" | "disableY" | "disableZ">>;
|
|
47
47
|
constructor();
|
|
48
48
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsCenter, never>;
|
|
49
49
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsCenter, "ngts-center", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; }, { "centered": "centered"; }, never, ["*"], true, never>;
|
package/staging/lib/sky.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export interface NgtsSkyOptions extends Partial<Omit<NgtThreeElements['ngt-mesh'
|
|
|
15
15
|
}
|
|
16
16
|
export declare class NgtsSky {
|
|
17
17
|
options: import("@angular/core").InputSignalWithTransform<NgtsSkyOptions, "" | Partial<NgtsSkyOptions>>;
|
|
18
|
-
protected parameters: import("@angular/core").Signal<Omit<NgtsSkyOptions, "distance" | "inclination" | "azimuth" | "
|
|
18
|
+
protected parameters: import("@angular/core").Signal<Omit<NgtsSkyOptions, "distance" | "inclination" | "azimuth" | "mieCoefficient" | "mieDirectionalG" | "turbidity" | "sunPosition">>;
|
|
19
19
|
private distance;
|
|
20
20
|
protected turbidity: import("@angular/core").Signal<number>;
|
|
21
21
|
protected mieCoefficient: import("@angular/core").Signal<number>;
|
|
@@ -104,7 +104,7 @@ export declare class NgtsSpotLightShadow {
|
|
|
104
104
|
export declare class NgtsSpotLight {
|
|
105
105
|
protected readonly SpotLightHelper: typeof THREE.SpotLightHelper;
|
|
106
106
|
options: import("@angular/core").InputSignalWithTransform<NgtsSpotLightOptions, "" | Partial<NgtsSpotLightOptions>>;
|
|
107
|
-
protected parameters: import("@angular/core").Signal<Omit<NgtsSpotLightOptions, "opacity" | "color" | "debug" | "distance" | "depthBuffer" | "
|
|
107
|
+
protected parameters: import("@angular/core").Signal<Omit<NgtsSpotLightOptions, "opacity" | "color" | "debug" | "distance" | "depthBuffer" | "angle" | "attenuation" | "anglePower" | "radiusTop" | "radiusBottom" | "volumetric">>;
|
|
108
108
|
protected volumetricOptions: import("@angular/core").Signal<Pick<NgtsSpotLightOptions, "opacity" | "color" | "debug" | "distance" | "depthBuffer" | "angle" | "attenuation" | "anglePower" | "radiusTop" | "radiusBottom">>;
|
|
109
109
|
spotLightRef: import("@angular/core").Signal<ElementRef<THREE.SpotLight>>;
|
|
110
110
|
debug: import("@angular/core").Signal<boolean | undefined>;
|
package/staging/lib/stage.d.ts
CHANGED
|
@@ -57,9 +57,6 @@ export declare class NgtsStage {
|
|
|
57
57
|
protected environment: import("@angular/core").Signal<"apartment" | "city" | "dawn" | "forest" | "lobby" | "night" | "park" | "studio" | "sunset" | "warehouse" | Partial<NgtsEnvironmentOptions> | null>;
|
|
58
58
|
private preset;
|
|
59
59
|
protected config: import("@angular/core").Signal<{
|
|
60
|
-
main: [x: number, y: number, z: number];
|
|
61
|
-
fill: [x: number, y: number, z: number];
|
|
62
|
-
} | {
|
|
63
60
|
readonly main: readonly [1, 2, 1];
|
|
64
61
|
readonly fill: readonly [-2, -0.5, -2];
|
|
65
62
|
} | {
|
|
@@ -71,6 +68,9 @@ export declare class NgtsStage {
|
|
|
71
68
|
} | {
|
|
72
69
|
readonly main: readonly [-2, 4, 4];
|
|
73
70
|
readonly fill: readonly [-1, 0.5, -1.5];
|
|
71
|
+
} | {
|
|
72
|
+
main: [x: number, y: number, z: number];
|
|
73
|
+
fill: [x: number, y: number, z: number];
|
|
74
74
|
}>;
|
|
75
75
|
protected shadowBias: import("@angular/core").Signal<number>;
|
|
76
76
|
protected normalBias: import("@angular/core").Signal<number>;
|