angular-three-soba 1.7.0 → 1.8.1

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.
Files changed (33) hide show
  1. package/assets/distort.vert.glsl +1 -0
  2. package/esm2020/materials/angular-three-soba-materials.mjs +5 -0
  3. package/esm2020/materials/index.mjs +4 -0
  4. package/esm2020/materials/lib/mesh-distort-material/mesh-distort-material.mjs +74 -0
  5. package/esm2020/materials/lib/mesh-reflector-material/mesh-reflector-material.mjs +328 -0
  6. package/esm2020/materials/lib/mesh-wobble-material/mesh-wobble-material.mjs +67 -0
  7. package/esm2020/shaders/index.mjs +6 -1
  8. package/esm2020/shaders/lib/blur-pass/blur-pass.mjs +61 -0
  9. package/esm2020/shaders/lib/convolution-material/convolution-material.mjs +94 -0
  10. package/esm2020/shaders/lib/mesh-distort-material/mesh-distort-material.mjs +55 -0
  11. package/esm2020/shaders/lib/mesh-reflector-material/mesh-reflector-material.mjs +223 -0
  12. package/esm2020/shaders/lib/mesh-wobble-material/mesh-wobble-material.mjs +37 -0
  13. package/fesm2015/angular-three-soba-materials.mjs +468 -0
  14. package/fesm2015/angular-three-soba-materials.mjs.map +1 -0
  15. package/fesm2015/angular-three-soba-shaders.mjs +467 -1
  16. package/fesm2015/angular-three-soba-shaders.mjs.map +1 -1
  17. package/fesm2020/angular-three-soba-materials.mjs +468 -0
  18. package/fesm2020/angular-three-soba-materials.mjs.map +1 -0
  19. package/fesm2020/angular-three-soba-shaders.mjs +466 -1
  20. package/fesm2020/angular-three-soba-shaders.mjs.map +1 -1
  21. package/materials/README.md +3 -0
  22. package/materials/index.d.ts +3 -0
  23. package/materials/lib/mesh-distort-material/mesh-distort-material.d.ts +19 -0
  24. package/materials/lib/mesh-reflector-material/mesh-reflector-material.d.ts +41 -0
  25. package/materials/lib/mesh-wobble-material/mesh-wobble-material.d.ts +14 -0
  26. package/package.json +37 -28
  27. package/plugin/package.json +1 -1
  28. package/shaders/index.d.ts +5 -0
  29. package/shaders/lib/blur-pass/blur-pass.d.ts +23 -0
  30. package/shaders/lib/convolution-material/convolution-material.d.ts +7 -0
  31. package/shaders/lib/mesh-distort-material/mesh-distort-material.d.ts +144 -0
  32. package/shaders/lib/mesh-reflector-material/mesh-reflector-material.d.ts +50 -0
  33. package/shaders/lib/mesh-wobble-material/mesh-wobble-material.d.ts +15 -0
@@ -0,0 +1,468 @@
1
+ import * as i0 from '@angular/core';
2
+ import { inject, Component, CUSTOM_ELEMENTS_SCHEMA, Input } from '@angular/core';
3
+ import { NgtRxStore, injectNgtRef, injectBeforeRender, NgtArgs, extend, NgtStore, startWithUndefined, getLocalState, NgtPush } from 'angular-three';
4
+ import { NGTS_DISTORT_MATERIAL_SHADER, MeshReflectorMaterial, BlurPass, MeshWobbleMaterial } from 'angular-three-soba/shaders';
5
+ import { NgIf } from '@angular/common';
6
+ import { debounceTime, map, combineLatest } from 'rxjs';
7
+ import * as THREE from 'three';
8
+
9
+ class NgtsMeshDistortMaterial extends NgtRxStore {
10
+ set time(time) {
11
+ this.set({ time });
12
+ }
13
+ set distort(distort) {
14
+ this.set({ distort });
15
+ }
16
+ set radius(radius) {
17
+ this.set({ radius });
18
+ }
19
+ set speed(speed) {
20
+ this.set({ speed });
21
+ }
22
+ initialize() {
23
+ super.initialize();
24
+ this.set({ speed: 1, time: 0, distort: 0.4, radius: 1 });
25
+ }
26
+ constructor() {
27
+ super();
28
+ this.MeshDistortMaterial = inject(NGTS_DISTORT_MATERIAL_SHADER);
29
+ this.material = new this.MeshDistortMaterial();
30
+ this.materialRef = injectNgtRef();
31
+ injectBeforeRender(({ clock }) => {
32
+ this.material.time = clock.getElapsedTime() * this.get('speed');
33
+ });
34
+ }
35
+ }
36
+ NgtsMeshDistortMaterial.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: NgtsMeshDistortMaterial, deps: [], target: i0.ɵɵFactoryTarget.Component });
37
+ NgtsMeshDistortMaterial.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: NgtsMeshDistortMaterial, isStandalone: true, selector: "ngts-mesh-distort-material", inputs: { materialRef: "materialRef", time: "time", distort: "distort", radius: "radius", speed: "speed" }, usesInheritance: true, ngImport: i0, template: `
38
+ <ngt-primitive
39
+ *args="[material]"
40
+ [ref]="materialRef"
41
+ [time]="get('time')"
42
+ [distort]="get('distort')"
43
+ [radius]="get('radius')"
44
+ ngtCompound
45
+ attach="material"
46
+ />
47
+ `, isInline: true, dependencies: [{ kind: "directive", type: NgtArgs, selector: "[args]", inputs: ["args"] }] });
48
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: NgtsMeshDistortMaterial, decorators: [{
49
+ type: Component,
50
+ args: [{
51
+ selector: 'ngts-mesh-distort-material',
52
+ standalone: true,
53
+ template: `
54
+ <ngt-primitive
55
+ *args="[material]"
56
+ [ref]="materialRef"
57
+ [time]="get('time')"
58
+ [distort]="get('distort')"
59
+ [radius]="get('radius')"
60
+ ngtCompound
61
+ attach="material"
62
+ />
63
+ `,
64
+ imports: [NgtArgs],
65
+ schemas: [CUSTOM_ELEMENTS_SCHEMA],
66
+ }]
67
+ }], ctorParameters: function () { return []; }, propDecorators: { materialRef: [{
68
+ type: Input
69
+ }], time: [{
70
+ type: Input
71
+ }], distort: [{
72
+ type: Input
73
+ }], radius: [{
74
+ type: Input
75
+ }], speed: [{
76
+ type: Input
77
+ }] } });
78
+
79
+ extend({ MeshReflectorMaterial });
80
+ class NgtsMeshReflectorMaterial extends NgtRxStore {
81
+ set resolution(resolution) {
82
+ this.set({ resolution });
83
+ }
84
+ set mixBlur(mixBlur) {
85
+ this.set({ mixBlur });
86
+ }
87
+ set mixStrength(mixStrength) {
88
+ this.set({ mixStrength });
89
+ }
90
+ set blur(blur) {
91
+ this.set({ blur });
92
+ }
93
+ set mirror(mirror) {
94
+ this.set({ mirror });
95
+ }
96
+ set minDepthThreshold(minDepthThreshold) {
97
+ this.set({ minDepthThreshold });
98
+ }
99
+ set maxDepthThreshold(maxDepthThreshold) {
100
+ this.set({ maxDepthThreshold });
101
+ }
102
+ set depthScale(depthScale) {
103
+ this.set({ depthScale });
104
+ }
105
+ set depthToBlurRatioBias(depthToBlurRatioBias) {
106
+ this.set({ depthToBlurRatioBias });
107
+ }
108
+ set distortionMap(distortionMap) {
109
+ this.set({ distortionMap });
110
+ }
111
+ set distortion(distortion) {
112
+ this.set({ distortion });
113
+ }
114
+ set mixContrast(mixContrast) {
115
+ this.set({ mixContrast });
116
+ }
117
+ set reflectorOffset(reflectorOffset) {
118
+ this.set({ reflectorOffset });
119
+ }
120
+ get reflectorProps() {
121
+ return this.get('reflectorEntities', 'reflectorProps');
122
+ }
123
+ initialize() {
124
+ super.initialize();
125
+ this.set({
126
+ mixBlur: 0,
127
+ mixStrength: 1,
128
+ resolution: 256,
129
+ blur: [0, 0],
130
+ minDepthThreshold: 0.9,
131
+ maxDepthThreshold: 1,
132
+ depthScale: 0,
133
+ depthToBlurRatioBias: 0.25,
134
+ mirror: 0,
135
+ distortion: 1,
136
+ mixContrast: 1,
137
+ reflectorOffset: 0,
138
+ });
139
+ }
140
+ constructor() {
141
+ super();
142
+ this.materialRef = injectNgtRef();
143
+ this.defines$ = this.select('reflectorEntities', 'reflectorProps', 'defines').pipe(debounceTime(0));
144
+ this.store = inject(NgtStore);
145
+ this.reflectorPlane = new THREE.Plane();
146
+ this.normal = new THREE.Vector3();
147
+ this.reflectorWorldPosition = new THREE.Vector3();
148
+ this.cameraWorldPosition = new THREE.Vector3();
149
+ this.rotationMatrix = new THREE.Matrix4();
150
+ this.lookAtPosition = new THREE.Vector3(0, 0, -1);
151
+ this.clipPlane = new THREE.Vector4();
152
+ this.view = new THREE.Vector3();
153
+ this.target = new THREE.Vector3();
154
+ this.q = new THREE.Vector4();
155
+ this.textureMatrix = new THREE.Matrix4();
156
+ this.virtualCamera = new THREE.PerspectiveCamera();
157
+ this.connect('normalizedBlur', this.select('blur').pipe(map((blur) => (Array.isArray(blur) ? blur : [blur, blur]))));
158
+ this.connect('hasBlur', this.select('normalizedBlur').pipe(map(([x, y]) => x + y > 0)));
159
+ this.connect('reflectorEntities', combineLatest([
160
+ this.store.select('gl'),
161
+ this.select('normalizedBlur'),
162
+ this.select('resolution'),
163
+ this.select('mirror'),
164
+ this.select('hasBlur'),
165
+ this.select('mixBlur'),
166
+ this.select('mixStrength'),
167
+ this.select('minDepthThreshold'),
168
+ this.select('maxDepthThreshold'),
169
+ this.select('depthScale'),
170
+ this.select('depthToBlurRatioBias'),
171
+ this.select('distortion'),
172
+ this.select('distortionMap').pipe(startWithUndefined()),
173
+ this.select('mixContrast'),
174
+ ]).pipe(map(([gl, blur, resolution, mirror, hasBlur, mixBlur, mixStrength, minDepthThreshold, maxDepthThreshold, depthScale, depthToBlurRatioBias, distortion, distortionMap, mixContrast,]) => {
175
+ const parameters = {
176
+ minFilter: THREE.LinearFilter,
177
+ magFilter: THREE.LinearFilter,
178
+ encoding: gl.outputEncoding,
179
+ type: THREE.HalfFloatType,
180
+ };
181
+ const fbo1 = new THREE.WebGLRenderTarget(resolution, resolution, parameters);
182
+ fbo1.depthBuffer = true;
183
+ fbo1.depthTexture = new THREE.DepthTexture(resolution, resolution);
184
+ fbo1.depthTexture.format = THREE.DepthFormat;
185
+ fbo1.depthTexture.type = THREE.UnsignedShortType;
186
+ const fbo2 = new THREE.WebGLRenderTarget(resolution, resolution, parameters);
187
+ const blurPass = new BlurPass({
188
+ gl,
189
+ resolution,
190
+ width: blur[0],
191
+ height: blur[1],
192
+ minDepthThreshold,
193
+ maxDepthThreshold,
194
+ depthScale,
195
+ depthToBlurRatioBias,
196
+ });
197
+ const reflectorProps = {
198
+ mirror,
199
+ textureMatrix: this.textureMatrix,
200
+ mixBlur,
201
+ tDiffuse: fbo1.texture,
202
+ tDepth: fbo1.depthTexture,
203
+ tDiffuseBlur: fbo2.texture,
204
+ hasBlur,
205
+ mixStrength,
206
+ minDepthThreshold,
207
+ maxDepthThreshold,
208
+ depthScale,
209
+ depthToBlurRatioBias,
210
+ distortion,
211
+ distortionMap,
212
+ mixContrast,
213
+ defines: {
214
+ USE_BLUR: hasBlur ? '' : undefined,
215
+ USE_DEPTH: depthScale > 0 ? '' : undefined,
216
+ USE_DISTORTION: distortionMap ? '' : undefined,
217
+ },
218
+ };
219
+ return { fbo1, fbo2, blurPass, reflectorProps };
220
+ })));
221
+ injectBeforeRender(this.onBeforeRender.bind(this));
222
+ console.log(this.materialRef);
223
+ }
224
+ beforeRender(state) {
225
+ const parent = getLocalState(this.materialRef.nativeElement).parent;
226
+ if (!parent)
227
+ return;
228
+ const { camera } = state;
229
+ this.reflectorWorldPosition.setFromMatrixPosition(parent.matrixWorld);
230
+ this.cameraWorldPosition.setFromMatrixPosition(camera.matrixWorld);
231
+ this.rotationMatrix.extractRotation(parent.matrixWorld);
232
+ this.normal.set(0, 0, 1);
233
+ this.normal.applyMatrix4(this.rotationMatrix);
234
+ this.reflectorWorldPosition.addScaledVector(this.normal, this.get('reflectorOffset'));
235
+ this.view.subVectors(this.reflectorWorldPosition, this.cameraWorldPosition);
236
+ // Avoid rendering when reflector is facing away
237
+ if (this.view.dot(this.normal) > 0)
238
+ return;
239
+ this.view.reflect(this.normal).negate();
240
+ this.view.add(this.reflectorWorldPosition);
241
+ this.rotationMatrix.extractRotation(camera.matrixWorld);
242
+ this.lookAtPosition.set(0, 0, -1);
243
+ this.lookAtPosition.applyMatrix4(this.rotationMatrix);
244
+ this.lookAtPosition.add(this.cameraWorldPosition);
245
+ this.target.subVectors(this.reflectorWorldPosition, this.lookAtPosition);
246
+ this.target.reflect(this.normal).negate();
247
+ this.target.add(this.reflectorWorldPosition);
248
+ this.virtualCamera.position.copy(this.view);
249
+ this.virtualCamera.up.set(0, 1, 0);
250
+ this.virtualCamera.up.applyMatrix4(this.rotationMatrix);
251
+ this.virtualCamera.up.reflect(this.normal);
252
+ this.virtualCamera.lookAt(this.target);
253
+ this.virtualCamera.far = camera.far; // Used in WebGLBackground
254
+ this.virtualCamera.updateMatrixWorld();
255
+ this.virtualCamera.projectionMatrix.copy(camera.projectionMatrix);
256
+ // Update the texture matrix
257
+ this.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);
258
+ this.textureMatrix.multiply(this.virtualCamera.projectionMatrix);
259
+ this.textureMatrix.multiply(this.virtualCamera.matrixWorldInverse);
260
+ this.textureMatrix.multiply(parent.matrixWorld);
261
+ // Now update projection matrix with new clip plane, implementing code from: http://www.terathon.com/code/oblique.html
262
+ // Paper explaining this technique: http://www.terathon.com/lengyel/Lengyel-Oblique.pdf
263
+ this.reflectorPlane.setFromNormalAndCoplanarPoint(this.normal, this.reflectorWorldPosition);
264
+ this.reflectorPlane.applyMatrix4(this.virtualCamera.matrixWorldInverse);
265
+ this.clipPlane.set(this.reflectorPlane.normal.x, this.reflectorPlane.normal.y, this.reflectorPlane.normal.z, this.reflectorPlane.constant);
266
+ const projectionMatrix = this.virtualCamera.projectionMatrix;
267
+ this.q.x = (Math.sign(this.clipPlane.x) + projectionMatrix.elements[8]) / projectionMatrix.elements[0];
268
+ this.q.y = (Math.sign(this.clipPlane.y) + projectionMatrix.elements[9]) / projectionMatrix.elements[5];
269
+ this.q.z = -1.0;
270
+ this.q.w = (1.0 + projectionMatrix.elements[10]) / projectionMatrix.elements[14];
271
+ // Calculate the scaled plane vector
272
+ this.clipPlane.multiplyScalar(2.0 / this.clipPlane.dot(this.q));
273
+ // Replacing the third row of the projection matrix
274
+ projectionMatrix.elements[2] = this.clipPlane.x;
275
+ projectionMatrix.elements[6] = this.clipPlane.y;
276
+ projectionMatrix.elements[10] = this.clipPlane.z + 1.0;
277
+ projectionMatrix.elements[14] = this.clipPlane.w;
278
+ }
279
+ onBeforeRender(state) {
280
+ if (!this.materialRef.nativeElement)
281
+ return;
282
+ const parent = getLocalState(this.materialRef.nativeElement).parent;
283
+ if (!parent)
284
+ return;
285
+ const { gl, scene } = state;
286
+ const { hasBlur } = this.get();
287
+ const { fbo1, fbo2, blurPass } = this.get('reflectorEntities');
288
+ if (fbo1 && fbo2 && blurPass) {
289
+ parent.visible = false;
290
+ const currentXrEnabled = gl.xr.enabled;
291
+ const currentShadowAutoUpdate = gl.shadowMap.autoUpdate;
292
+ this.beforeRender(state);
293
+ gl.xr.enabled = false;
294
+ gl.shadowMap.autoUpdate = false;
295
+ gl.setRenderTarget(fbo1);
296
+ gl.state.buffers.depth.setMask(true);
297
+ if (!gl.autoClear)
298
+ gl.clear();
299
+ gl.render(scene, this.virtualCamera);
300
+ if (hasBlur)
301
+ blurPass.render(gl, fbo1, fbo2);
302
+ gl.xr.enabled = currentXrEnabled;
303
+ gl.shadowMap.autoUpdate = currentShadowAutoUpdate;
304
+ parent.visible = true;
305
+ gl.setRenderTarget(null);
306
+ }
307
+ }
308
+ }
309
+ NgtsMeshReflectorMaterial.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: NgtsMeshReflectorMaterial, deps: [], target: i0.ɵɵFactoryTarget.Component });
310
+ NgtsMeshReflectorMaterial.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: NgtsMeshReflectorMaterial, isStandalone: true, selector: "ngts-mesh-reflector-material", inputs: { materialRef: "materialRef", resolution: "resolution", mixBlur: "mixBlur", mixStrength: "mixStrength", blur: "blur", mirror: "mirror", minDepthThreshold: "minDepthThreshold", maxDepthThreshold: "maxDepthThreshold", depthScale: "depthScale", depthToBlurRatioBias: "depthToBlurRatioBias", distortionMap: "distortionMap", distortion: "distortion", mixContrast: "mixContrast", reflectorOffset: "reflectorOffset" }, usesInheritance: true, ngImport: i0, template: `
311
+ <ngt-mesh-reflector-material
312
+ ngtCompound
313
+ attach="material"
314
+ *ngIf="defines$ | ngtPush as defines"
315
+ [ref]="materialRef"
316
+ [defines]="defines"
317
+ [mirror]="reflectorProps.mirror"
318
+ [textureMatrix]="reflectorProps.textureMatrix"
319
+ [mixBlur]="reflectorProps.mixBlur"
320
+ [tDiffuse]="reflectorProps.tDiffuse"
321
+ [tDepth]="reflectorProps.tDepth"
322
+ [tDiffuseBlur]="reflectorProps.tDiffuseBlur"
323
+ [hasBlur]="reflectorProps.hasBlur"
324
+ [mixStrength]="reflectorProps.mixStrength"
325
+ [minDepthThreshold]="reflectorProps.minDepthThreshold"
326
+ [maxDepthThreshold]="reflectorProps.maxDepthThreshold"
327
+ [depthScale]="reflectorProps.depthScale"
328
+ [depthToBlurRatioBias]="reflectorProps.depthToBlurRatioBias"
329
+ [distortion]="reflectorProps.distortion"
330
+ [distortionMap]="reflectorProps.distortionMap"
331
+ [mixContrast]="reflectorProps.mixContrast"
332
+ >
333
+ <ng-content />
334
+ </ngt-mesh-reflector-material>
335
+ `, isInline: true, dependencies: [{ kind: "pipe", type: NgtPush, name: "ngtPush" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
336
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: NgtsMeshReflectorMaterial, decorators: [{
337
+ type: Component,
338
+ args: [{
339
+ selector: 'ngts-mesh-reflector-material',
340
+ standalone: true,
341
+ template: `
342
+ <ngt-mesh-reflector-material
343
+ ngtCompound
344
+ attach="material"
345
+ *ngIf="defines$ | ngtPush as defines"
346
+ [ref]="materialRef"
347
+ [defines]="defines"
348
+ [mirror]="reflectorProps.mirror"
349
+ [textureMatrix]="reflectorProps.textureMatrix"
350
+ [mixBlur]="reflectorProps.mixBlur"
351
+ [tDiffuse]="reflectorProps.tDiffuse"
352
+ [tDepth]="reflectorProps.tDepth"
353
+ [tDiffuseBlur]="reflectorProps.tDiffuseBlur"
354
+ [hasBlur]="reflectorProps.hasBlur"
355
+ [mixStrength]="reflectorProps.mixStrength"
356
+ [minDepthThreshold]="reflectorProps.minDepthThreshold"
357
+ [maxDepthThreshold]="reflectorProps.maxDepthThreshold"
358
+ [depthScale]="reflectorProps.depthScale"
359
+ [depthToBlurRatioBias]="reflectorProps.depthToBlurRatioBias"
360
+ [distortion]="reflectorProps.distortion"
361
+ [distortionMap]="reflectorProps.distortionMap"
362
+ [mixContrast]="reflectorProps.mixContrast"
363
+ >
364
+ <ng-content />
365
+ </ngt-mesh-reflector-material>
366
+ `,
367
+ imports: [NgtArgs, NgtPush, NgIf],
368
+ schemas: [CUSTOM_ELEMENTS_SCHEMA],
369
+ }]
370
+ }], ctorParameters: function () { return []; }, propDecorators: { materialRef: [{
371
+ type: Input
372
+ }], resolution: [{
373
+ type: Input
374
+ }], mixBlur: [{
375
+ type: Input
376
+ }], mixStrength: [{
377
+ type: Input
378
+ }], blur: [{
379
+ type: Input
380
+ }], mirror: [{
381
+ type: Input
382
+ }], minDepthThreshold: [{
383
+ type: Input
384
+ }], maxDepthThreshold: [{
385
+ type: Input
386
+ }], depthScale: [{
387
+ type: Input
388
+ }], depthToBlurRatioBias: [{
389
+ type: Input
390
+ }], distortionMap: [{
391
+ type: Input
392
+ }], distortion: [{
393
+ type: Input
394
+ }], mixContrast: [{
395
+ type: Input
396
+ }], reflectorOffset: [{
397
+ type: Input
398
+ }] } });
399
+
400
+ extend({ MeshWobbleMaterial });
401
+ class NgtsMeshWobbleMaterial extends NgtRxStore {
402
+ set time(time) {
403
+ this.set({ time });
404
+ }
405
+ set factor(factor) {
406
+ this.set({ factor });
407
+ }
408
+ set speed(speed) {
409
+ this.set({ speed });
410
+ }
411
+ initialize() {
412
+ super.initialize();
413
+ this.set({ speed: 1, time: 0, factor: 1 });
414
+ }
415
+ constructor() {
416
+ super();
417
+ this.material = new MeshWobbleMaterial();
418
+ this.materialRef = injectNgtRef();
419
+ injectBeforeRender(({ clock }) => {
420
+ this.material.time = clock.getElapsedTime() * this.get('speed');
421
+ });
422
+ }
423
+ }
424
+ NgtsMeshWobbleMaterial.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: NgtsMeshWobbleMaterial, deps: [], target: i0.ɵɵFactoryTarget.Component });
425
+ NgtsMeshWobbleMaterial.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: NgtsMeshWobbleMaterial, isStandalone: true, selector: "ngts-mesh-wobble-material", inputs: { materialRef: "materialRef", time: "time", factor: "factor", speed: "speed" }, usesInheritance: true, ngImport: i0, template: `
426
+ <ngt-primitive
427
+ *args="[material]"
428
+ [ref]="materialRef"
429
+ [time]="get('time')"
430
+ [factor]="get('factor')"
431
+ attach="material"
432
+ ngtCompound
433
+ />
434
+ `, isInline: true, dependencies: [{ kind: "directive", type: NgtArgs, selector: "[args]", inputs: ["args"] }] });
435
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: NgtsMeshWobbleMaterial, decorators: [{
436
+ type: Component,
437
+ args: [{
438
+ selector: 'ngts-mesh-wobble-material',
439
+ standalone: true,
440
+ template: `
441
+ <ngt-primitive
442
+ *args="[material]"
443
+ [ref]="materialRef"
444
+ [time]="get('time')"
445
+ [factor]="get('factor')"
446
+ attach="material"
447
+ ngtCompound
448
+ />
449
+ `,
450
+ imports: [NgtArgs],
451
+ schemas: [CUSTOM_ELEMENTS_SCHEMA],
452
+ }]
453
+ }], ctorParameters: function () { return []; }, propDecorators: { materialRef: [{
454
+ type: Input
455
+ }], time: [{
456
+ type: Input
457
+ }], factor: [{
458
+ type: Input
459
+ }], speed: [{
460
+ type: Input
461
+ }] } });
462
+
463
+ /**
464
+ * Generated bundle index. Do not edit.
465
+ */
466
+
467
+ export { NgtsMeshDistortMaterial, NgtsMeshReflectorMaterial, NgtsMeshWobbleMaterial };
468
+ //# sourceMappingURL=angular-three-soba-materials.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"angular-three-soba-materials.mjs","sources":["../../../../libs/angular-three-soba/materials/src/lib/mesh-distort-material/mesh-distort-material.ts","../../../../libs/angular-three-soba/materials/src/lib/mesh-reflector-material/mesh-reflector-material.ts","../../../../libs/angular-three-soba/materials/src/lib/mesh-wobble-material/mesh-wobble-material.ts","../../../../libs/angular-three-soba/materials/src/angular-three-soba-materials.ts"],"sourcesContent":["import { Component, CUSTOM_ELEMENTS_SCHEMA, inject, Input } from '@angular/core';\nimport { injectBeforeRender, injectNgtRef, NgtArgs, NgtRxStore } from 'angular-three';\nimport { NGTS_DISTORT_MATERIAL_SHADER } from 'angular-three-soba/shaders';\n\n@Component({\n selector: 'ngts-mesh-distort-material',\n standalone: true,\n template: `\n <ngt-primitive\n *args=\"[material]\"\n [ref]=\"materialRef\"\n [time]=\"get('time')\"\n [distort]=\"get('distort')\"\n [radius]=\"get('radius')\"\n ngtCompound\n attach=\"material\"\n />\n `,\n imports: [NgtArgs],\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n})\nexport class NgtsMeshDistortMaterial extends NgtRxStore {\n readonly MeshDistortMaterial = inject(NGTS_DISTORT_MATERIAL_SHADER);\n\n readonly material = new this.MeshDistortMaterial();\n\n @Input() materialRef = injectNgtRef<typeof this.MeshDistortMaterial>();\n\n @Input() set time(time: number) {\n this.set({ time });\n }\n\n @Input() set distort(distort: number) {\n this.set({ distort });\n }\n\n @Input() set radius(radius: number) {\n this.set({ radius });\n }\n\n @Input() set speed(speed: number) {\n this.set({ speed });\n }\n\n override initialize(): void {\n super.initialize();\n this.set({ speed: 1, time: 0, distort: 0.4, radius: 1 });\n }\n\n constructor() {\n super();\n injectBeforeRender(({ clock }) => {\n this.material.time = clock.getElapsedTime() * this.get('speed');\n });\n }\n}\n","import { NgIf } from '@angular/common';\nimport { Component, CUSTOM_ELEMENTS_SCHEMA, inject, Input } from '@angular/core';\nimport {\n extend,\n getLocalState,\n injectBeforeRender,\n injectNgtRef,\n NgtArgs,\n NgtPush,\n NgtRenderState,\n NgtRxStore,\n NgtStore,\n startWithUndefined,\n} from 'angular-three';\nimport { BlurPass, MeshReflectorMaterial } from 'angular-three-soba/shaders';\nimport { combineLatest, debounceTime, map } from 'rxjs';\nimport * as THREE from 'three';\n\nextend({ MeshReflectorMaterial });\n\n@Component({\n selector: 'ngts-mesh-reflector-material',\n standalone: true,\n template: `\n <ngt-mesh-reflector-material\n ngtCompound\n attach=\"material\"\n *ngIf=\"defines$ | ngtPush as defines\"\n [ref]=\"materialRef\"\n [defines]=\"defines\"\n [mirror]=\"reflectorProps.mirror\"\n [textureMatrix]=\"reflectorProps.textureMatrix\"\n [mixBlur]=\"reflectorProps.mixBlur\"\n [tDiffuse]=\"reflectorProps.tDiffuse\"\n [tDepth]=\"reflectorProps.tDepth\"\n [tDiffuseBlur]=\"reflectorProps.tDiffuseBlur\"\n [hasBlur]=\"reflectorProps.hasBlur\"\n [mixStrength]=\"reflectorProps.mixStrength\"\n [minDepthThreshold]=\"reflectorProps.minDepthThreshold\"\n [maxDepthThreshold]=\"reflectorProps.maxDepthThreshold\"\n [depthScale]=\"reflectorProps.depthScale\"\n [depthToBlurRatioBias]=\"reflectorProps.depthToBlurRatioBias\"\n [distortion]=\"reflectorProps.distortion\"\n [distortionMap]=\"reflectorProps.distortionMap\"\n [mixContrast]=\"reflectorProps.mixContrast\"\n >\n <ng-content />\n </ngt-mesh-reflector-material>\n `,\n imports: [NgtArgs, NgtPush, NgIf],\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n})\nexport class NgtsMeshReflectorMaterial extends NgtRxStore {\n @Input() materialRef = injectNgtRef<MeshReflectorMaterial>();\n\n @Input() set resolution(resolution: number) {\n this.set({ resolution });\n }\n\n @Input() set mixBlur(mixBlur: number) {\n this.set({ mixBlur });\n }\n\n @Input() set mixStrength(mixStrength: number) {\n this.set({ mixStrength });\n }\n\n @Input() set blur(blur: [number, number] | number) {\n this.set({ blur });\n }\n\n @Input() set mirror(mirror: number) {\n this.set({ mirror });\n }\n\n @Input() set minDepthThreshold(minDepthThreshold: number) {\n this.set({ minDepthThreshold });\n }\n\n @Input() set maxDepthThreshold(maxDepthThreshold: number) {\n this.set({ maxDepthThreshold });\n }\n\n @Input() set depthScale(depthScale: number) {\n this.set({ depthScale });\n }\n\n @Input() set depthToBlurRatioBias(depthToBlurRatioBias: number) {\n this.set({ depthToBlurRatioBias });\n }\n\n @Input() set distortionMap(distortionMap: THREE.Texture) {\n this.set({ distortionMap });\n }\n\n @Input() set distortion(distortion: number) {\n this.set({ distortion });\n }\n\n @Input() set mixContrast(mixContrast: number) {\n this.set({ mixContrast });\n }\n\n @Input() set reflectorOffset(reflectorOffset: number) {\n this.set({ reflectorOffset });\n }\n\n readonly defines$ = this.select('reflectorEntities', 'reflectorProps', 'defines').pipe(debounceTime(0));\n\n get reflectorProps() {\n return this.get('reflectorEntities', 'reflectorProps');\n }\n\n private readonly store = inject(NgtStore);\n\n private readonly reflectorPlane = new THREE.Plane();\n private readonly normal = new THREE.Vector3();\n private readonly reflectorWorldPosition = new THREE.Vector3();\n private readonly cameraWorldPosition = new THREE.Vector3();\n private readonly rotationMatrix = new THREE.Matrix4();\n private readonly lookAtPosition = new THREE.Vector3(0, 0, -1);\n private readonly clipPlane = new THREE.Vector4();\n private readonly view = new THREE.Vector3();\n private readonly target = new THREE.Vector3();\n private readonly q = new THREE.Vector4();\n private readonly textureMatrix = new THREE.Matrix4();\n private readonly virtualCamera = new THREE.PerspectiveCamera();\n\n override initialize(): void {\n super.initialize();\n this.set({\n mixBlur: 0,\n mixStrength: 1,\n resolution: 256,\n blur: [0, 0],\n minDepthThreshold: 0.9,\n maxDepthThreshold: 1,\n depthScale: 0,\n depthToBlurRatioBias: 0.25,\n mirror: 0,\n distortion: 1,\n mixContrast: 1,\n reflectorOffset: 0,\n });\n }\n\n constructor() {\n super();\n\n this.connect(\n 'normalizedBlur',\n this.select('blur').pipe(map((blur) => (Array.isArray(blur) ? blur : [blur, blur])))\n );\n this.connect('hasBlur', this.select('normalizedBlur').pipe(map(([x, y]) => x + y > 0)));\n this.connect(\n 'reflectorEntities',\n combineLatest([\n this.store.select('gl'),\n this.select('normalizedBlur'),\n this.select('resolution'),\n this.select('mirror'),\n this.select('hasBlur'),\n this.select('mixBlur'),\n this.select('mixStrength'),\n this.select('minDepthThreshold'),\n this.select('maxDepthThreshold'),\n this.select('depthScale'),\n this.select('depthToBlurRatioBias'),\n this.select('distortion'),\n this.select('distortionMap').pipe(startWithUndefined()),\n this.select('mixContrast'),\n ]).pipe(\n map(\n ([\n gl,\n blur,\n resolution,\n mirror,\n hasBlur,\n mixBlur,\n mixStrength,\n minDepthThreshold,\n maxDepthThreshold,\n depthScale,\n depthToBlurRatioBias,\n distortion,\n distortionMap,\n mixContrast,\n ]) => {\n const parameters = {\n minFilter: THREE.LinearFilter,\n magFilter: THREE.LinearFilter,\n encoding: gl.outputEncoding,\n type: THREE.HalfFloatType,\n };\n const fbo1 = new THREE.WebGLRenderTarget(resolution, resolution, parameters);\n fbo1.depthBuffer = true;\n fbo1.depthTexture = new THREE.DepthTexture(resolution, resolution);\n fbo1.depthTexture.format = THREE.DepthFormat;\n fbo1.depthTexture.type = THREE.UnsignedShortType;\n\n const fbo2 = new THREE.WebGLRenderTarget(resolution, resolution, parameters);\n const blurPass = new BlurPass({\n gl,\n resolution,\n width: blur[0],\n height: blur[1],\n minDepthThreshold,\n maxDepthThreshold,\n depthScale,\n depthToBlurRatioBias,\n });\n const reflectorProps = {\n mirror,\n textureMatrix: this.textureMatrix,\n mixBlur,\n tDiffuse: fbo1.texture,\n tDepth: fbo1.depthTexture,\n tDiffuseBlur: fbo2.texture,\n hasBlur,\n mixStrength,\n minDepthThreshold,\n maxDepthThreshold,\n depthScale,\n depthToBlurRatioBias,\n distortion,\n distortionMap,\n mixContrast,\n defines: {\n USE_BLUR: hasBlur ? '' : undefined,\n USE_DEPTH: depthScale > 0 ? '' : undefined,\n USE_DISTORTION: distortionMap ? '' : undefined,\n },\n };\n\n return { fbo1, fbo2, blurPass, reflectorProps };\n }\n )\n )\n );\n\n injectBeforeRender(this.onBeforeRender.bind(this));\n console.log(this.materialRef);\n }\n\n private beforeRender(state: NgtRenderState) {\n const parent = getLocalState(this.materialRef.nativeElement).parent;\n if (!parent) return;\n\n const { camera } = state;\n\n this.reflectorWorldPosition.setFromMatrixPosition(parent.matrixWorld);\n this.cameraWorldPosition.setFromMatrixPosition(camera.matrixWorld);\n this.rotationMatrix.extractRotation(parent.matrixWorld);\n this.normal.set(0, 0, 1);\n this.normal.applyMatrix4(this.rotationMatrix);\n this.reflectorWorldPosition.addScaledVector(this.normal, this.get('reflectorOffset'));\n this.view.subVectors(this.reflectorWorldPosition, this.cameraWorldPosition);\n // Avoid rendering when reflector is facing away\n if (this.view.dot(this.normal) > 0) return;\n this.view.reflect(this.normal).negate();\n this.view.add(this.reflectorWorldPosition);\n this.rotationMatrix.extractRotation(camera.matrixWorld);\n this.lookAtPosition.set(0, 0, -1);\n this.lookAtPosition.applyMatrix4(this.rotationMatrix);\n this.lookAtPosition.add(this.cameraWorldPosition);\n this.target.subVectors(this.reflectorWorldPosition, this.lookAtPosition);\n this.target.reflect(this.normal).negate();\n this.target.add(this.reflectorWorldPosition);\n this.virtualCamera.position.copy(this.view);\n this.virtualCamera.up.set(0, 1, 0);\n this.virtualCamera.up.applyMatrix4(this.rotationMatrix);\n this.virtualCamera.up.reflect(this.normal);\n this.virtualCamera.lookAt(this.target);\n this.virtualCamera.far = camera.far; // Used in WebGLBackground\n this.virtualCamera.updateMatrixWorld();\n this.virtualCamera.projectionMatrix.copy(camera.projectionMatrix);\n // Update the texture matrix\n this.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 this.textureMatrix.multiply(this.virtualCamera.projectionMatrix);\n this.textureMatrix.multiply(this.virtualCamera.matrixWorldInverse);\n this.textureMatrix.multiply(parent.matrixWorld);\n // Now update projection matrix with new clip plane, implementing code from: http://www.terathon.com/code/oblique.html\n // Paper explaining this technique: http://www.terathon.com/lengyel/Lengyel-Oblique.pdf\n this.reflectorPlane.setFromNormalAndCoplanarPoint(this.normal, this.reflectorWorldPosition);\n this.reflectorPlane.applyMatrix4(this.virtualCamera.matrixWorldInverse);\n this.clipPlane.set(\n this.reflectorPlane.normal.x,\n this.reflectorPlane.normal.y,\n this.reflectorPlane.normal.z,\n this.reflectorPlane.constant\n );\n const projectionMatrix = this.virtualCamera.projectionMatrix;\n this.q.x = (Math.sign(this.clipPlane.x) + projectionMatrix.elements[8]) / projectionMatrix.elements[0];\n this.q.y = (Math.sign(this.clipPlane.y) + projectionMatrix.elements[9]) / projectionMatrix.elements[5];\n this.q.z = -1.0;\n this.q.w = (1.0 + projectionMatrix.elements[10]) / projectionMatrix.elements[14];\n // Calculate the scaled plane vector\n this.clipPlane.multiplyScalar(2.0 / this.clipPlane.dot(this.q));\n // Replacing the third row of the projection matrix\n projectionMatrix.elements[2] = this.clipPlane.x;\n projectionMatrix.elements[6] = this.clipPlane.y;\n projectionMatrix.elements[10] = this.clipPlane.z + 1.0;\n projectionMatrix.elements[14] = this.clipPlane.w;\n }\n\n private onBeforeRender(state: NgtRenderState) {\n if (!this.materialRef.nativeElement) return;\n const parent = getLocalState(this.materialRef.nativeElement).parent;\n if (!parent) return;\n\n const { gl, scene } = state;\n const { hasBlur } = this.get();\n const { fbo1, fbo2, blurPass } = this.get('reflectorEntities');\n\n if (fbo1 && fbo2 && blurPass) {\n parent.visible = false;\n const currentXrEnabled = gl.xr.enabled;\n const currentShadowAutoUpdate = gl.shadowMap.autoUpdate;\n this.beforeRender(state);\n gl.xr.enabled = false;\n gl.shadowMap.autoUpdate = false;\n gl.setRenderTarget(fbo1);\n gl.state.buffers.depth.setMask(true);\n if (!gl.autoClear) gl.clear();\n gl.render(scene, this.virtualCamera);\n if (hasBlur) blurPass.render(gl, fbo1, fbo2);\n gl.xr.enabled = currentXrEnabled;\n gl.shadowMap.autoUpdate = currentShadowAutoUpdate;\n parent.visible = true;\n gl.setRenderTarget(null);\n }\n }\n}\n","import { Component, CUSTOM_ELEMENTS_SCHEMA, Input } from '@angular/core';\nimport { extend, injectBeforeRender, injectNgtRef, NgtArgs, NgtRxStore } from 'angular-three';\nimport { MeshWobbleMaterial } from 'angular-three-soba/shaders';\n\nextend({ MeshWobbleMaterial });\n\n@Component({\n selector: 'ngts-mesh-wobble-material',\n standalone: true,\n template: `\n <ngt-primitive\n *args=\"[material]\"\n [ref]=\"materialRef\"\n [time]=\"get('time')\"\n [factor]=\"get('factor')\"\n attach=\"material\"\n ngtCompound\n />\n `,\n imports: [NgtArgs],\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n})\nexport class NgtsMeshWobbleMaterial extends NgtRxStore {\n readonly material = new MeshWobbleMaterial();\n\n @Input() materialRef = injectNgtRef<MeshWobbleMaterial>();\n\n @Input() set time(time: number) {\n this.set({ time });\n }\n\n @Input() set factor(factor: number) {\n this.set({ factor });\n }\n\n @Input() set speed(speed: number) {\n this.set({ speed });\n }\n\n override initialize(): void {\n super.initialize();\n this.set({ speed: 1, time: 0, factor: 1 });\n }\n\n constructor() {\n super();\n injectBeforeRender(({ clock }) => {\n this.material.time = clock.getElapsedTime() * this.get('speed');\n });\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAqBM,MAAO,uBAAwB,SAAQ,UAAU,CAAA;IAOnD,IAAa,IAAI,CAAC,IAAY,EAAA;AAC1B,QAAA,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;KACtB;IAED,IAAa,OAAO,CAAC,OAAe,EAAA;AAChC,QAAA,IAAI,CAAC,GAAG,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;KACzB;IAED,IAAa,MAAM,CAAC,MAAc,EAAA;AAC9B,QAAA,IAAI,CAAC,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC;KACxB;IAED,IAAa,KAAK,CAAC,KAAa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