angular-three-soba 2.0.0-beta.7 → 2.0.0-beta.8
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/billboard/billboard.d.ts +11 -7
- package/abstractions/detailed/detailed.d.ts +26 -0
- package/abstractions/edges/edges.d.ts +23 -11
- package/abstractions/grid/grid.d.ts +41 -50
- package/abstractions/index.d.ts +1 -7
- package/abstractions/text/text.d.ts +10 -4
- package/abstractions/text-3d/text-3d.d.ts +47 -40
- package/cameras/camera/camera-content.d.ts +1 -1
- package/cameras/camera/camera.d.ts +16 -13
- package/cameras/cube-camera/cube-camera.d.ts +50 -23
- package/cameras/index.d.ts +0 -1
- package/cameras/orthographic-camera/orthographic-camera.d.ts +29 -18
- package/cameras/perspective-camera/perspective-camera.d.ts +10 -1
- package/controls/orbit-controls/orbit-controls.d.ts +30 -13
- package/esm2022/abstractions/billboard/billboard.mjs +36 -33
- package/esm2022/abstractions/detailed/detailed.mjs +64 -0
- package/esm2022/abstractions/edges/edges.mjs +58 -63
- package/esm2022/abstractions/grid/grid.mjs +140 -110
- package/esm2022/abstractions/index.mjs +2 -8
- package/esm2022/abstractions/text/text.mjs +123 -122
- package/esm2022/abstractions/text-3d/text-3d.mjs +119 -121
- package/esm2022/cameras/camera/camera-content.mjs +5 -6
- package/esm2022/cameras/camera/camera.mjs +48 -42
- package/esm2022/cameras/cube-camera/cube-camera.mjs +129 -99
- package/esm2022/cameras/index.mjs +1 -2
- package/esm2022/cameras/orthographic-camera/orthographic-camera.mjs +78 -75
- package/esm2022/cameras/perspective-camera/perspective-camera.mjs +25 -26
- package/esm2022/controls/orbit-controls/orbit-controls.mjs +94 -90
- package/esm2022/loaders/gltf-loader/gltf-loader.mjs +3 -6
- package/esm2022/loaders/loader/loader.mjs +92 -87
- package/esm2022/loaders/progress/progress.mjs +1 -1
- package/esm2022/loaders/texture-loader/texture-loader.mjs +4 -4
- package/esm2022/materials/index.mjs +2 -1
- package/esm2022/materials/mesh-distort-material/mesh-distort-material.mjs +60 -51
- package/esm2022/materials/mesh-reflector-material/mesh-reflector-material.mjs +239 -255
- package/esm2022/materials/mesh-refraction-material/mesh-refraction-material.mjs +99 -97
- package/esm2022/materials/mesh-transmission-material/mesh-transmission-material.mjs +167 -146
- package/esm2022/materials/mesh-wobble-material/mesh-wobble-material.mjs +44 -42
- package/esm2022/materials/point-material/point-material.mjs +46 -0
- package/esm2022/misc/animations/animations.mjs +20 -16
- package/esm2022/misc/bake-shadows/bake-shadows.mjs +13 -13
- package/esm2022/misc/caustics/caustics.mjs +387 -0
- package/esm2022/misc/decal/decal.mjs +187 -0
- package/esm2022/misc/depth-buffer/depth-buffer.mjs +33 -35
- package/esm2022/misc/example/example.mjs +160 -0
- package/esm2022/misc/fbo/fbo.mjs +35 -35
- package/esm2022/misc/html/html-wrapper.mjs +478 -0
- package/esm2022/misc/html/html.mjs +304 -0
- package/esm2022/misc/index.mjs +10 -1
- package/esm2022/misc/sampler/sampler.mjs +142 -0
- package/esm2022/misc/shadow/shadow.mjs +111 -0
- package/esm2022/misc/stats-gl/stats-gl.mjs +61 -0
- package/esm2022/misc/trail/trail.mjs +209 -0
- package/esm2022/misc/trail-texture/inject-trail-texture.mjs +17 -0
- package/esm2022/misc/trail-texture/trail-texture.mjs +106 -0
- package/esm2022/modifiers/angular-three-soba-modifiers.mjs +5 -0
- package/esm2022/modifiers/curve-modifier/curve-modifier.mjs +64 -0
- package/esm2022/modifiers/index.mjs +2 -0
- package/esm2022/performances/adaptive-dpr/adaptive-dpr.mjs +44 -0
- package/esm2022/performances/adaptive-events/adaptive-events.mjs +27 -0
- package/esm2022/performances/angular-three-soba-performances.mjs +5 -0
- package/esm2022/performances/index.mjs +6 -0
- package/esm2022/performances/points/points-input.mjs +64 -0
- package/esm2022/performances/points/points.mjs +329 -0
- package/esm2022/performances/points/position-point.mjs +54 -0
- package/esm2022/performances/segments/segment-object.mjs +9 -0
- package/esm2022/performances/segments/segments.mjs +182 -0
- package/esm2022/shaders/blur-pass/blur-pass.mjs +1 -1
- package/esm2022/shaders/caustics/caustics-material.mjs +130 -0
- package/esm2022/shaders/caustics/caustics-projection-material.mjs +31 -0
- package/esm2022/shaders/convolution-material/convolution-material.mjs +1 -1
- package/esm2022/shaders/discard-material/discard-material.mjs +1 -1
- package/esm2022/shaders/grid-material/grid-material.mjs +29 -14
- package/esm2022/shaders/index.mjs +5 -3
- package/esm2022/shaders/mesh-distort-material/mesh-distort-material.mjs +42 -41
- package/esm2022/shaders/mesh-reflector-material/mesh-reflector-material.mjs +1 -1
- package/esm2022/shaders/mesh-refraction-material/mesh-refraction-material.mjs +2 -2
- package/esm2022/shaders/mesh-transmission-material/mesh-transmission-material.mjs +4 -4
- package/esm2022/shaders/mesh-wobble-material/mesh-wobble-material.mjs +1 -1
- package/esm2022/shaders/shader-material/shader-material.mjs +1 -1
- package/esm2022/shaders/soft-shadow-material/soft-shadow-material.mjs +17 -25
- package/esm2022/shaders/sparkles-material/sparkles-material.mjs +32 -46
- package/esm2022/shaders/spot-light-material/spot-light-material.mjs +7 -7
- package/esm2022/shaders/star-field-material/star-field-material.mjs +3 -2
- package/esm2022/shaders/wireframe-material/wireframe-material.mjs +247 -0
- package/esm2022/staging/accumulative-shadows/accumulative-shadows.mjs +160 -176
- package/esm2022/staging/accumulative-shadows/progressive-light-map.mjs +1 -1
- package/esm2022/staging/accumulative-shadows/randomized-lights.mjs +126 -128
- package/esm2022/staging/backdrop/backdrop.mjs +77 -0
- package/esm2022/staging/bb-anchor/bb-anchor.mjs +70 -0
- package/esm2022/staging/bounds/bounds.mjs +144 -143
- package/esm2022/staging/camera-shake/camera-shake.mjs +86 -80
- package/esm2022/staging/center/center.mjs +106 -91
- package/esm2022/staging/cloud/cloud.mjs +118 -124
- package/esm2022/staging/contact-shadows/contact-shadows.mjs +131 -134
- package/esm2022/staging/environment/assets.mjs +12 -12
- package/esm2022/staging/environment/environment-cube.mjs +28 -30
- package/esm2022/staging/environment/environment-ground.mjs +18 -20
- package/esm2022/staging/environment/environment-input.mjs +97 -84
- package/esm2022/staging/environment/environment-map.mjs +33 -33
- package/esm2022/staging/environment/environment-portal.mjs +75 -97
- package/esm2022/staging/environment/environment.mjs +34 -51
- package/esm2022/staging/environment/utils.mjs +35 -14
- package/esm2022/staging/float/float.mjs +70 -58
- package/esm2022/staging/index.mjs +7 -3
- package/esm2022/staging/matcap-texture/matcap-texture.mjs +64 -0
- package/esm2022/staging/normal-texture/normal-texture.mjs +53 -0
- package/esm2022/staging/sky/sky.mjs +85 -80
- package/esm2022/staging/sparkles/sparkles.mjs +108 -105
- package/esm2022/staging/spot-light/shadow-mesh-input.mjs +63 -0
- package/esm2022/staging/spot-light/shadow-mesh.mjs +266 -0
- package/esm2022/staging/spot-light/spot-light-input.mjs +67 -58
- package/esm2022/staging/spot-light/spot-light.mjs +51 -64
- package/esm2022/staging/spot-light/volumetric-mesh.mjs +61 -78
- package/esm2022/staging/stage/stage.mjs +304 -290
- package/esm2022/staging/stars/stars.mjs +101 -102
- package/esm2022/staging/wireframe/wireframe-input.mjs +191 -0
- package/esm2022/staging/wireframe/wireframe.mjs +224 -0
- package/esm2022/utils/angular-three-soba-utils.mjs +5 -0
- package/esm2022/utils/content/content.mjs +15 -0
- package/esm2022/utils/index.mjs +2 -0
- package/fesm2022/angular-three-soba-abstractions.mjs +505 -2087
- package/fesm2022/angular-three-soba-abstractions.mjs.map +1 -1
- package/fesm2022/angular-three-soba-cameras.mjs +302 -259
- package/fesm2022/angular-three-soba-cameras.mjs.map +1 -1
- package/fesm2022/angular-three-soba-controls.mjs +93 -88
- package/fesm2022/angular-three-soba-controls.mjs.map +1 -1
- package/fesm2022/angular-three-soba-loaders.mjs +94 -90
- package/fesm2022/angular-three-soba-loaders.mjs.map +1 -1
- package/fesm2022/angular-three-soba-materials.mjs +655 -590
- package/fesm2022/angular-three-soba-materials.mjs.map +1 -1
- package/fesm2022/angular-three-soba-misc.mjs +2198 -89
- package/fesm2022/angular-three-soba-misc.mjs.map +1 -1
- package/fesm2022/angular-three-soba-modifiers.mjs +71 -0
- package/fesm2022/angular-three-soba-modifiers.mjs.map +1 -0
- package/fesm2022/angular-three-soba-performances.mjs +697 -0
- package/fesm2022/angular-three-soba-performances.mjs.map +1 -0
- package/fesm2022/angular-three-soba-shaders.mjs +501 -264
- package/fesm2022/angular-three-soba-shaders.mjs.map +1 -1
- package/fesm2022/angular-three-soba-staging.mjs +2870 -2555
- package/fesm2022/angular-three-soba-staging.mjs.map +1 -1
- package/fesm2022/angular-three-soba-utils.mjs +22 -0
- package/fesm2022/angular-three-soba-utils.mjs.map +1 -0
- package/loaders/gltf-loader/gltf-loader.d.ts +4 -3
- package/loaders/loader/loader.d.ts +19 -17
- package/loaders/progress/progress.d.ts +1 -1
- package/loaders/texture-loader/texture-loader.d.ts +2 -2
- package/materials/index.d.ts +1 -0
- package/materials/mesh-distort-material/mesh-distort-material.d.ts +25 -15
- package/materials/mesh-reflector-material/mesh-reflector-material.d.ts +74 -56
- package/materials/mesh-refraction-material/mesh-refraction-material.d.ts +33 -21
- package/materials/mesh-transmission-material/mesh-transmission-material.d.ts +55 -39
- package/materials/mesh-wobble-material/mesh-wobble-material.d.ts +19 -10
- package/materials/point-material/point-material.d.ts +24 -0
- package/metadata.json +1 -0
- package/misc/animations/animations.d.ts +6 -4
- package/misc/caustics/caustics.d.ts +87 -0
- package/misc/decal/decal.d.ts +49 -0
- package/misc/depth-buffer/depth-buffer.d.ts +2 -2
- package/misc/example/example.d.ts +81 -0
- package/misc/fbo/fbo.d.ts +2 -2
- package/misc/html/html-wrapper.d.ts +559 -0
- package/misc/html/html.d.ts +214 -0
- package/misc/index.d.ts +9 -0
- package/misc/sampler/sampler.d.ts +67 -0
- package/misc/shadow/shadow.d.ts +37 -0
- package/misc/stats-gl/stats-gl.d.ts +24 -0
- package/misc/trail/trail.d.ts +57 -0
- package/misc/trail-texture/inject-trail-texture.d.ts +9 -0
- package/misc/trail-texture/trail-texture.d.ts +50 -0
- package/modifiers/README.md +3 -0
- package/modifiers/curve-modifier/curve-modifier.d.ts +23 -0
- package/modifiers/index.d.ts +1 -0
- package/package.json +30 -22
- package/performances/README.md +3 -0
- package/performances/adaptive-dpr/adaptive-dpr.d.ts +14 -0
- package/{performance/adaptive → performances/adaptive-events}/adaptive-events.d.ts +3 -0
- package/performances/index.d.ts +5 -0
- package/performances/points/points-input.d.ts +32 -0
- package/performances/points/points.d.ts +92 -0
- package/{performance/instances/position-mesh.d.ts → performances/points/position-point.d.ts} +4 -3
- package/performances/segments/segment-object.d.ts +7 -0
- package/performances/segments/segments.d.ts +124 -0
- package/shaders/grid-material/grid-material.d.ts +33 -0
- package/shaders/index.d.ts +4 -2
- package/shaders/mesh-distort-material/mesh-distort-material.d.ts +146 -1
- package/shaders/mesh-transmission-material/mesh-transmission-material.d.ts +1 -1
- package/shaders/shader-material/shader-material.d.ts +2 -2
- package/shaders/soft-shadow-material/soft-shadow-material.d.ts +10 -1
- package/shaders/sparkles-material/sparkles-material.d.ts +15 -1
- package/shaders/spot-light-material/spot-light-material.d.ts +11 -2
- package/shaders/star-field-material/star-field-material.d.ts +11 -1
- package/shaders/wireframe-material/wireframe-material.d.ts +58 -0
- package/staging/accumulative-shadows/accumulative-shadows.d.ts +89 -39
- package/staging/accumulative-shadows/randomized-lights.d.ts +40 -27
- package/staging/backdrop/backdrop.d.ts +30 -0
- package/staging/bb-anchor/bb-anchor.d.ts +27 -0
- package/staging/bounds/bounds.d.ts +100 -24
- package/staging/camera-shake/camera-shake.d.ts +30 -19
- package/staging/center/center.d.ts +43 -35
- package/staging/cloud/cloud.d.ts +26 -23
- package/staging/contact-shadows/contact-shadows.d.ts +41 -28
- package/staging/environment/assets.d.ts +9 -9
- package/staging/environment/environment-cube.d.ts +9 -5
- package/staging/environment/environment-ground.d.ts +7 -7
- package/staging/environment/environment-input.d.ts +36 -36
- package/staging/environment/environment-map.d.ts +10 -5
- package/staging/environment/environment-portal.d.ts +10 -5
- package/staging/environment/environment.d.ts +0 -4
- package/staging/environment/utils.d.ts +2 -2
- package/staging/float/float.d.ts +14 -10
- package/staging/index.d.ts +6 -2
- package/staging/matcap-texture/matcap-texture.d.ts +13 -0
- package/staging/normal-texture/normal-texture.d.ts +16 -0
- package/staging/sky/sky.d.ts +28 -21
- package/staging/sparkles/sparkles.d.ts +35 -21
- package/staging/spot-light/shadow-mesh-input.d.ts +29 -0
- package/staging/spot-light/shadow-mesh.d.ts +37 -0
- package/staging/spot-light/spot-light-input.d.ts +25 -25
- package/staging/spot-light/spot-light.d.ts +31 -15
- package/staging/spot-light/volumetric-mesh.d.ts +15 -9
- package/staging/stage/stage.d.ts +88 -63
- package/staging/stars/stars.d.ts +27 -16
- package/staging/wireframe/wireframe-input.d.ts +65 -0
- package/staging/wireframe/wireframe.d.ts +28 -0
- package/utils/README.md +3 -0
- package/utils/content/content.d.ts +8 -0
- package/utils/index.d.ts +1 -0
- package/web-types.json +1 -0
- package/abstractions/catmull-rom-line/catmull-rom-line.d.ts +0 -25
- package/abstractions/cubic-bezier-line/cubic-bezier-line.d.ts +0 -25
- package/abstractions/gizmo-helper/gizmo-helper.d.ts +0 -34
- package/abstractions/gizmo-helper/gizmo-viewcube/constants.d.ts +0 -12
- package/abstractions/gizmo-helper/gizmo-viewcube/gizmo-viewcube-edge.d.ts +0 -22
- package/abstractions/gizmo-helper/gizmo-viewcube/gizmo-viewcube-face.d.ts +0 -30
- package/abstractions/gizmo-helper/gizmo-viewcube/gizmo-viewcube-inputs.d.ts +0 -32
- package/abstractions/gizmo-helper/gizmo-viewcube/gizmo-viewcube.d.ts +0 -14
- package/abstractions/gizmo-helper/gizmo-viewport/gizmo-viewport-axis.d.ts +0 -47
- package/abstractions/gizmo-helper/gizmo-viewport/gizmo-viewport.d.ts +0 -40
- package/abstractions/line/line-input.d.ts +0 -42
- package/abstractions/line/line.d.ts +0 -35
- package/abstractions/quadratic-bezier-line/quadratic-bezier-line.d.ts +0 -23
- package/esm2022/abstractions/catmull-rom-line/catmull-rom-line.mjs +0 -131
- package/esm2022/abstractions/cubic-bezier-line/cubic-bezier-line.mjs +0 -113
- package/esm2022/abstractions/gizmo-helper/gizmo-helper.mjs +0 -210
- package/esm2022/abstractions/gizmo-helper/gizmo-viewcube/constants.mjs +0 -31
- package/esm2022/abstractions/gizmo-helper/gizmo-viewcube/gizmo-viewcube-edge.mjs +0 -95
- package/esm2022/abstractions/gizmo-helper/gizmo-viewcube/gizmo-viewcube-face.mjs +0 -155
- package/esm2022/abstractions/gizmo-helper/gizmo-viewcube/gizmo-viewcube-inputs.mjs +0 -62
- package/esm2022/abstractions/gizmo-helper/gizmo-viewcube/gizmo-viewcube.mjs +0 -80
- package/esm2022/abstractions/gizmo-helper/gizmo-viewport/gizmo-viewport-axis.mjs +0 -206
- package/esm2022/abstractions/gizmo-helper/gizmo-viewport/gizmo-viewport.mjs +0 -273
- package/esm2022/abstractions/line/line-input.mjs +0 -113
- package/esm2022/abstractions/line/line.mjs +0 -165
- package/esm2022/abstractions/quadratic-bezier-line/quadratic-bezier-line.mjs +0 -128
- package/esm2022/performance/adaptive/adaptive-dpr.mjs +0 -46
- package/esm2022/performance/adaptive/adaptive-events.mjs +0 -31
- package/esm2022/performance/angular-three-soba-performance.mjs +0 -5
- package/esm2022/performance/detailed/detailed.mjs +0 -61
- package/esm2022/performance/index.mjs +0 -7
- package/esm2022/performance/instances/instance.mjs +0 -48
- package/esm2022/performance/instances/instances.mjs +0 -189
- package/esm2022/performance/instances/position-mesh.mjs +0 -52
- package/esm2022/performance/stats/stats.mjs +0 -79
- package/esm2022/shaders/caustics-material/caustics-material.mjs +0 -128
- package/esm2022/shaders/caustics-material/caustics-projection-material.mjs +0 -33
- package/esm2022/staging/caustics/caustisc.mjs +0 -384
- package/esm2022/staging/spot-light/spot-light-shadow-mesh-input.mjs +0 -57
- package/esm2022/staging/spot-light/spot-light-shadow-mesh.mjs +0 -258
- package/fesm2022/angular-three-soba-performance.mjs +0 -487
- package/fesm2022/angular-three-soba-performance.mjs.map +0 -1
- package/performance/README.md +0 -3
- package/performance/adaptive/adaptive-dpr.d.ts +0 -8
- package/performance/detailed/detailed.d.ts +0 -20
- package/performance/index.d.ts +0 -6
- package/performance/instances/instance.d.ts +0 -9
- package/performance/instances/instances.d.ts +0 -35
- package/performance/stats/stats.d.ts +0 -18
- package/plugin/generators.json +0 -19
- package/plugin/libs/plugin/README.md +0 -11
- package/plugin/package.json +0 -9
- package/plugin/src/generators/init/compat.d.ts +0 -2
- package/plugin/src/generators/init/compat.js +0 -6
- package/plugin/src/generators/init/compat.js.map +0 -1
- package/plugin/src/generators/init/init.d.ts +0 -7
- package/plugin/src/generators/init/init.js +0 -28
- package/plugin/src/generators/init/init.js.map +0 -1
- package/plugin/src/generators/init/schema.json +0 -6
- package/plugin/src/index.d.ts +0 -1
- package/plugin/src/index.js +0 -6
- package/plugin/src/index.js.map +0 -1
- package/staging/caustics/caustisc.d.ts +0 -70
- package/staging/spot-light/spot-light-shadow-mesh-input.d.ts +0 -29
- package/staging/spot-light/spot-light-shadow-mesh.d.ts +0 -38
- /package/shaders/{caustics-material → caustics}/caustics-material.d.ts +0 -0
- /package/shaders/{caustics-material → caustics}/caustics-projection-material.d.ts +0 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { inject, Injector, TemplateRef, Directive } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
class NgtsSobaContent {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.injector = inject(Injector);
|
|
7
|
+
this.template = inject(TemplateRef);
|
|
8
|
+
}
|
|
9
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: NgtsSobaContent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
10
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.7", type: NgtsSobaContent, isStandalone: true, selector: "ng-template[ngtsSobaContent]", exportAs: ["sobaContent"], ngImport: i0 }); }
|
|
11
|
+
}
|
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: NgtsSobaContent, decorators: [{
|
|
13
|
+
type: Directive,
|
|
14
|
+
args: [{ selector: 'ng-template[ngtsSobaContent]', standalone: true, exportAs: 'sobaContent' }]
|
|
15
|
+
}] });
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Generated bundle index. Do not edit.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
export { NgtsSobaContent };
|
|
22
|
+
//# sourceMappingURL=angular-three-soba-utils.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"angular-three-soba-utils.mjs","sources":["../../../../libs/soba/utils/src/content/content.ts","../../../../libs/soba/utils/src/angular-three-soba-utils.ts"],"sourcesContent":["import { Directive, Injector, TemplateRef, inject } from '@angular/core';\n\n@Directive({ selector: 'ng-template[ngtsSobaContent]', standalone: true, exportAs: 'sobaContent' })\nexport class NgtsSobaContent {\n\tinjector = inject(Injector);\n\ttemplate = inject(TemplateRef);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAGa,eAAe,CAAA;AAD5B,IAAA,WAAA,GAAA;AAEC,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;AAC5B,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;AAC/B,KAAA;8GAHY,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAAf,eAAe,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,8BAAA,EAAA,QAAA,EAAA,CAAA,aAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;2FAAf,eAAe,EAAA,UAAA,EAAA,CAAA;kBAD3B,SAAS;mBAAC,EAAE,QAAQ,EAAE,8BAA8B,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,aAAa,EAAE,CAAA;;;ACFlG;;AAEG;;;;"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { Injector, Signal } from '@angular/core';
|
|
1
|
+
import type { Injector, Signal } from '@angular/core';
|
|
2
2
|
import { type NgtLoaderResults, type NgtObjectMap } from 'angular-three';
|
|
3
|
-
import { GLTF, GLTFLoader } from 'three-stdlib
|
|
3
|
+
import { GLTF, GLTFLoader } from 'three-stdlib';
|
|
4
|
+
export type NgtsGLTF<T extends Partial<NgtObjectMap>> = GLTF & NgtObjectMap & T;
|
|
4
5
|
export declare function injectNgtsGLTFLoader<TUrl extends string | string[] | Record<string, string>>(path: () => TUrl, { useDraco, useMeshOpt, injector, extensions, }?: {
|
|
5
6
|
useDraco?: boolean | string;
|
|
6
7
|
useMeshOpt?: boolean;
|
|
7
8
|
injector?: Injector;
|
|
8
9
|
extensions?: (loader: GLTFLoader) => void;
|
|
9
|
-
}): Signal<NgtLoaderResults<TUrl, GLTF & NgtObjectMap
|
|
10
|
+
}): Signal<NgtLoaderResults<TUrl, GLTF & NgtObjectMap> | null>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ElementRef } from '@angular/core';
|
|
2
|
-
import { NgtSignalStore } from 'angular-three';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
export interface NgtsLoaderState {
|
|
5
4
|
containerClass?: string;
|
|
@@ -9,23 +8,26 @@ export interface NgtsLoaderState {
|
|
|
9
8
|
dataInterpolation: (value: number) => string;
|
|
10
9
|
initialState: (value: boolean) => boolean;
|
|
11
10
|
}
|
|
12
|
-
export declare class NgtsLoader
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
set
|
|
22
|
-
set
|
|
23
|
-
set
|
|
24
|
-
set
|
|
25
|
-
set
|
|
11
|
+
export declare class NgtsLoader {
|
|
12
|
+
private inputs;
|
|
13
|
+
private progressState;
|
|
14
|
+
active: import("@angular/core").Signal<boolean>;
|
|
15
|
+
progress: import("@angular/core").Signal<number>;
|
|
16
|
+
container: import("@angular/core").Signal<string | undefined>;
|
|
17
|
+
inner: import("@angular/core").Signal<string | undefined>;
|
|
18
|
+
bar: import("@angular/core").Signal<string | undefined>;
|
|
19
|
+
data: import("@angular/core").Signal<string | undefined>;
|
|
20
|
+
set _containerClass(containerClass: string);
|
|
21
|
+
set _innerClass(innerClass: string);
|
|
22
|
+
set _barClass(barClass: string);
|
|
23
|
+
set _dataClass(dataClass: string);
|
|
24
|
+
set _dataInterpolation(dataInterpolation: (value: number) => string);
|
|
25
|
+
set _initialState(initialState: (value: boolean) => boolean);
|
|
26
26
|
progressSpanRef?: ElementRef<HTMLSpanElement>;
|
|
27
|
-
|
|
27
|
+
shown: import("@angular/core").WritableSignal<boolean>;
|
|
28
28
|
constructor();
|
|
29
|
+
private setShown;
|
|
30
|
+
private updateProgress;
|
|
29
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsLoader, never>;
|
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsLoader, "ngts-loader", never, { "
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsLoader, "ngts-loader", never, { "_containerClass": { "alias": "containerClass"; "required": false; }; "_innerClass": { "alias": "innerClass"; "required": false; }; "_barClass": { "alias": "barClass"; "required": false; }; "_dataClass": { "alias": "dataClass"; "required": false; }; "_dataInterpolation": { "alias": "dataInterpolation"; "required": false; }; "_initialState": { "alias": "initialState"; "required": false; }; }, {}, never, never, true, never>;
|
|
31
33
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Injector, type Signal } from '@angular/core';
|
|
1
|
+
import { type Injector, type Signal } from '@angular/core';
|
|
2
2
|
import { type NgtLoaderResults } from 'angular-three';
|
|
3
3
|
import * as THREE from 'three';
|
|
4
4
|
export declare function injectNgtsTextureLoader<TInput extends string[] | string | Record<string, string>>(input: () => TInput, { onLoad, injector, }?: {
|
|
5
5
|
onLoad?: (texture: THREE.Texture | THREE.Texture[]) => void;
|
|
6
6
|
injector?: Injector;
|
|
7
|
-
}): Signal<NgtLoaderResults<TInput, THREE.Texture
|
|
7
|
+
}): Signal<NgtLoaderResults<TInput, THREE.Texture> | null>;
|
package/materials/index.d.ts
CHANGED
|
@@ -3,3 +3,4 @@ export * from './mesh-reflector-material/mesh-reflector-material';
|
|
|
3
3
|
export * from './mesh-refraction-material/mesh-refraction-material';
|
|
4
4
|
export * from './mesh-transmission-material/mesh-transmission-material';
|
|
5
5
|
export * from './mesh-wobble-material/mesh-wobble-material';
|
|
6
|
+
export * from './point-material/point-material';
|
|
@@ -1,30 +1,40 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type NgtMeshPhysicalMaterial } from 'angular-three';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export
|
|
3
|
+
export type NgtsMeshDistortMaterialState = {
|
|
4
4
|
time: number;
|
|
5
5
|
distort: number;
|
|
6
6
|
radius: number;
|
|
7
7
|
speed: number;
|
|
8
|
+
};
|
|
9
|
+
declare global {
|
|
10
|
+
interface HTMLElementTagNameMap {
|
|
11
|
+
/**
|
|
12
|
+
* @extends ngt-mesh-physical-material
|
|
13
|
+
*/
|
|
14
|
+
'ngts-mesh-distort-material': NgtsMeshDistortMaterialState & NgtMeshPhysicalMaterial;
|
|
15
|
+
}
|
|
8
16
|
}
|
|
9
|
-
export declare class NgtsMeshDistortMaterial
|
|
10
|
-
|
|
17
|
+
export declare class NgtsMeshDistortMaterial {
|
|
18
|
+
private inputs;
|
|
19
|
+
materialRef: import("angular-three").NgtInjectedRef<{
|
|
11
20
|
time: number;
|
|
12
21
|
distort: number;
|
|
13
22
|
radius: number;
|
|
14
|
-
} & import("three").MeshPhysicalMaterial
|
|
15
|
-
|
|
23
|
+
} & import("three").MeshPhysicalMaterial>;
|
|
24
|
+
set _time(time: number);
|
|
25
|
+
set _distort(distort: number);
|
|
26
|
+
set _radius(radius: number);
|
|
27
|
+
set _speed(speed: number);
|
|
28
|
+
private MeshDistortMaterial;
|
|
29
|
+
material: {
|
|
16
30
|
time: number;
|
|
17
31
|
distort: number;
|
|
18
32
|
radius: number;
|
|
19
|
-
} & import("three").MeshPhysicalMaterial
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
set speed(speed: number);
|
|
24
|
-
readonly distortTime: import("@angular/core").Signal<number>;
|
|
25
|
-
readonly distortDistort: import("@angular/core").Signal<number>;
|
|
26
|
-
readonly distortRadius: import("@angular/core").Signal<number>;
|
|
33
|
+
} & import("three").MeshPhysicalMaterial;
|
|
34
|
+
time: import("@angular/core").Signal<number>;
|
|
35
|
+
distort: import("@angular/core").Signal<number>;
|
|
36
|
+
radius: import("@angular/core").Signal<number>;
|
|
27
37
|
constructor();
|
|
28
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsMeshDistortMaterial, never>;
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsMeshDistortMaterial, "ngts-mesh-distort-material", never, { "materialRef": { "alias": "materialRef"; "required": false; }; "
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsMeshDistortMaterial, "ngts-mesh-distort-material", never, { "materialRef": { "alias": "materialRef"; "required": false; }; "_time": { "alias": "time"; "required": false; }; "_distort": { "alias": "distort"; "required": false; }; "_radius": { "alias": "radius"; "required": false; }; "_speed": { "alias": "speed"; "required": false; }; }, {}, never, never, true, never>;
|
|
30
40
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NgtMeshStandardMaterial } from 'angular-three';
|
|
2
2
|
import { MeshReflectorMaterial } from 'angular-three-soba/shaders';
|
|
3
3
|
import * as THREE from 'three';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export
|
|
5
|
+
export type NgtsMeshReflectorMaterialState = {
|
|
6
6
|
resolution: number;
|
|
7
7
|
mixBlur: number;
|
|
8
8
|
mixStrength: number;
|
|
@@ -16,66 +16,84 @@ export interface NgtsMeshReflectorMaterialState {
|
|
|
16
16
|
distortion: number;
|
|
17
17
|
mixContrast: number;
|
|
18
18
|
reflectorOffset: number;
|
|
19
|
+
};
|
|
20
|
+
declare global {
|
|
21
|
+
interface HTMLElementTagNameMap {
|
|
22
|
+
/**
|
|
23
|
+
* @extends ngt-mesh-standard-material
|
|
24
|
+
*/
|
|
25
|
+
'ngts-mesh-reflector-material': NgtsMeshReflectorMaterialState & NgtMeshStandardMaterial;
|
|
26
|
+
}
|
|
19
27
|
}
|
|
20
|
-
export declare class NgtsMeshReflectorMaterial
|
|
21
|
-
|
|
28
|
+
export declare class NgtsMeshReflectorMaterial {
|
|
29
|
+
private inputs;
|
|
22
30
|
materialRef: import("angular-three").NgtInjectedRef<MeshReflectorMaterial>;
|
|
23
|
-
set
|
|
24
|
-
set
|
|
25
|
-
set
|
|
26
|
-
set
|
|
27
|
-
set
|
|
28
|
-
set
|
|
29
|
-
set
|
|
30
|
-
set
|
|
31
|
-
set
|
|
32
|
-
set
|
|
33
|
-
set
|
|
34
|
-
set
|
|
35
|
-
set
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
textureMatrix: THREE.Matrix4;
|
|
39
|
-
mixBlur: number;
|
|
40
|
-
tDiffuse: THREE.Texture;
|
|
41
|
-
tDepth: THREE.DepthTexture;
|
|
42
|
-
tDiffuseBlur: THREE.Texture;
|
|
43
|
-
hasBlur: boolean;
|
|
44
|
-
mixStrength: number;
|
|
45
|
-
minDepthThreshold: number;
|
|
46
|
-
maxDepthThreshold: number;
|
|
47
|
-
depthScale: number;
|
|
48
|
-
depthToBlurRatioBias: number;
|
|
49
|
-
distortion: number;
|
|
50
|
-
distortionMap: THREE.Texture | undefined;
|
|
51
|
-
mixContrast: number;
|
|
52
|
-
defines: {
|
|
53
|
-
USE_BLUR: string | undefined;
|
|
54
|
-
USE_DEPTH: string | undefined;
|
|
55
|
-
USE_DISTORTION: string | undefined;
|
|
56
|
-
};
|
|
57
|
-
}>;
|
|
58
|
-
readonly defines: import("@angular/core").Signal<{
|
|
31
|
+
set _resolution(resolution: number);
|
|
32
|
+
set _mixBlur(mixBlur: number);
|
|
33
|
+
set _mixStrength(mixStrength: number);
|
|
34
|
+
set _blur(blur: [number, number] | number);
|
|
35
|
+
set _mirror(mirror: number);
|
|
36
|
+
set _minDepthThreshold(minDepthThreshold: number);
|
|
37
|
+
set _maxDepthThreshold(maxDepthThreshold: number);
|
|
38
|
+
set _depthScale(depthScale: number);
|
|
39
|
+
set _depthToBlurRatioBias(depthToBlurRatioBias: number);
|
|
40
|
+
set _distortionMap(distortionMap: THREE.Texture);
|
|
41
|
+
set _distortion(distortion: number);
|
|
42
|
+
set _mixContrast(mixContrast: number);
|
|
43
|
+
set _reflectorOffset(reflectorOffset: number);
|
|
44
|
+
private reflectorProps;
|
|
45
|
+
defines: import("@angular/core").Signal<{
|
|
59
46
|
USE_BLUR: string | undefined;
|
|
60
47
|
USE_DEPTH: string | undefined;
|
|
61
48
|
USE_DISTORTION: string | undefined;
|
|
62
49
|
}>;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
50
|
+
mirror: import("@angular/core").Signal<number>;
|
|
51
|
+
textureMatrix: import("@angular/core").Signal<THREE.Matrix4>;
|
|
52
|
+
mixBlur: import("@angular/core").Signal<number>;
|
|
53
|
+
tDiffuse: import("@angular/core").Signal<THREE.Texture>;
|
|
54
|
+
tDepth: import("@angular/core").Signal<THREE.DepthTexture>;
|
|
55
|
+
tDiffuseBlur: import("@angular/core").Signal<THREE.Texture>;
|
|
56
|
+
hasBlur: import("@angular/core").Signal<boolean>;
|
|
57
|
+
mixStrength: import("@angular/core").Signal<number>;
|
|
58
|
+
minDepthThreshold: import("@angular/core").Signal<number>;
|
|
59
|
+
maxDepthThreshold: import("@angular/core").Signal<number>;
|
|
60
|
+
depthScale: import("@angular/core").Signal<number>;
|
|
61
|
+
depthToBlurRatioBias: import("@angular/core").Signal<number>;
|
|
62
|
+
distortion: import("@angular/core").Signal<number>;
|
|
63
|
+
distortionMap: import("@angular/core").Signal<THREE.Texture | undefined>;
|
|
64
|
+
mixContrast: import("@angular/core").Signal<number>;
|
|
65
|
+
private store;
|
|
66
|
+
private gl;
|
|
67
|
+
private reflectorPlane;
|
|
68
|
+
private normal;
|
|
69
|
+
private reflectorWorldPosition;
|
|
70
|
+
private cameraWorldPosition;
|
|
71
|
+
private rotationMatrix;
|
|
72
|
+
private lookAtPosition;
|
|
73
|
+
private clipPlane;
|
|
74
|
+
private view;
|
|
75
|
+
private target;
|
|
76
|
+
private q;
|
|
77
|
+
private virtualCamera;
|
|
78
|
+
private _textureMatrix;
|
|
79
|
+
private __blur;
|
|
80
|
+
private __resolution;
|
|
81
|
+
private __mirror;
|
|
82
|
+
private __mixBlur;
|
|
83
|
+
private __mixStrength;
|
|
84
|
+
private __minDepthThreshold;
|
|
85
|
+
private __maxDepthThreshold;
|
|
86
|
+
private __depthScale;
|
|
87
|
+
private __depthToBlurRatioBias;
|
|
88
|
+
private __distortion;
|
|
89
|
+
private __distortionMap;
|
|
90
|
+
private __mixContrast;
|
|
91
|
+
private normalizedBlur;
|
|
92
|
+
private __hasBlur;
|
|
93
|
+
private states;
|
|
78
94
|
constructor();
|
|
95
|
+
private onBeforeRender;
|
|
96
|
+
private beforeRender;
|
|
79
97
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsMeshReflectorMaterial, never>;
|
|
80
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsMeshReflectorMaterial, "ngts-mesh-reflector-material", never, { "materialRef": { "alias": "materialRef"; "required": false; }; "
|
|
98
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsMeshReflectorMaterial, "ngts-mesh-reflector-material", never, { "materialRef": { "alias": "materialRef"; "required": false; }; "_resolution": { "alias": "resolution"; "required": false; }; "_mixBlur": { "alias": "mixBlur"; "required": false; }; "_mixStrength": { "alias": "mixStrength"; "required": false; }; "_blur": { "alias": "blur"; "required": false; }; "_mirror": { "alias": "mirror"; "required": false; }; "_minDepthThreshold": { "alias": "minDepthThreshold"; "required": false; }; "_maxDepthThreshold": { "alias": "maxDepthThreshold"; "required": false; }; "_depthScale": { "alias": "depthScale"; "required": false; }; "_depthToBlurRatioBias": { "alias": "depthToBlurRatioBias"; "required": false; }; "_distortionMap": { "alias": "distortionMap"; "required": false; }; "_distortion": { "alias": "distortion"; "required": false; }; "_mixContrast": { "alias": "mixContrast"; "required": false; }; "_reflectorOffset": { "alias": "reflectorOffset"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
81
99
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type NgtShaderMaterial } from 'angular-three';
|
|
2
|
+
import { NgtsMeshTranmissionMaterialState } from '../mesh-transmission-material/mesh-transmission-material';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
|
-
export
|
|
4
|
+
export type NgtsMeshRefractionMaterialState = {
|
|
4
5
|
/** Environment map */
|
|
5
6
|
envMap: THREE.CubeTexture | THREE.Texture;
|
|
6
7
|
/** Number of ray-cast bounces, it can be expensive to have too many, 2 */
|
|
@@ -15,36 +16,47 @@ export interface NgtsMeshRefractionMaterialState {
|
|
|
15
16
|
color: THREE.ColorRepresentation;
|
|
16
17
|
/** If this is on it uses fewer ray casts for the RGB shift sacrificing physical accuracy, true */
|
|
17
18
|
fastChroma: boolean;
|
|
19
|
+
};
|
|
20
|
+
declare global {
|
|
21
|
+
interface HTMLElementTagNameMap {
|
|
22
|
+
/**
|
|
23
|
+
* @extends ngt-shader-material
|
|
24
|
+
*/
|
|
25
|
+
'ngts-mesh-refraction-material': NgtsMeshTranmissionMaterialState & NgtShaderMaterial;
|
|
26
|
+
}
|
|
18
27
|
}
|
|
19
|
-
export declare class NgtsMeshRefractionMaterial
|
|
20
|
-
|
|
28
|
+
export declare class NgtsMeshRefractionMaterial {
|
|
29
|
+
private inputs;
|
|
21
30
|
materialRef: import("angular-three").NgtInjectedRef<import("three").ShaderMaterial>;
|
|
22
31
|
/** Environment map */
|
|
23
|
-
set
|
|
32
|
+
set _envMap(envMap: THREE.CubeTexture | THREE.Texture);
|
|
24
33
|
/** Number of ray-cast bounces, it can be expensive to have too many, 2 */
|
|
25
|
-
set
|
|
34
|
+
set _bounces(bounces: number);
|
|
26
35
|
/** Refraction index, 2.4 */
|
|
27
|
-
set
|
|
36
|
+
set _ior(ior: number);
|
|
28
37
|
/** Fresnel (strip light), 0 */
|
|
29
|
-
set
|
|
38
|
+
set _fresnel(fresnel: number);
|
|
30
39
|
/** RGB shift intensity, can be expensive, 0 */
|
|
31
|
-
set
|
|
40
|
+
set _aberrationStrength(aberrationStrength: number);
|
|
32
41
|
/** Color, white */
|
|
33
|
-
set
|
|
42
|
+
set _color(color: THREE.ColorRepresentation);
|
|
34
43
|
/** If this is on it uses fewer ray casts for the RGB shift sacrificing physical accuracy, true */
|
|
35
|
-
set
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
+
set _fastChroma(fastChroma: boolean);
|
|
45
|
+
envMap: import("@angular/core").Signal<import("three").Texture | import("three").CubeTexture>;
|
|
46
|
+
bounces: import("@angular/core").Signal<number>;
|
|
47
|
+
ior: import("@angular/core").Signal<number>;
|
|
48
|
+
fresnel: import("@angular/core").Signal<number>;
|
|
49
|
+
aberrationStrength: import("@angular/core").Signal<number>;
|
|
50
|
+
color: import("@angular/core").Signal<import("three").ColorRepresentation>;
|
|
51
|
+
fastChroma: import("@angular/core").Signal<boolean>;
|
|
52
|
+
private store;
|
|
53
|
+
private size;
|
|
54
|
+
defines: import("@angular/core").Signal<{
|
|
44
55
|
[key: string]: string;
|
|
45
56
|
} | null>;
|
|
46
|
-
|
|
57
|
+
resolution: import("@angular/core").Signal<number[]>;
|
|
47
58
|
constructor();
|
|
59
|
+
private setupGeometry;
|
|
48
60
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsMeshRefractionMaterial, never>;
|
|
49
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsMeshRefractionMaterial, "ngts-mesh-refraction-material", never, { "materialRef": { "alias": "materialRef"; "required": false; }; "
|
|
61
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsMeshRefractionMaterial, "ngts-mesh-refraction-material", never, { "materialRef": { "alias": "materialRef"; "required": false; }; "_envMap": { "alias": "envMap"; "required": true; }; "_bounces": { "alias": "bounces"; "required": false; }; "_ior": { "alias": "ior"; "required": false; }; "_fresnel": { "alias": "fresnel"; "required": false; }; "_aberrationStrength": { "alias": "aberrationStrength"; "required": false; }; "_color": { "alias": "color"; "required": false; }; "_fastChroma": { "alias": "fastChroma"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
50
62
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type NgtMeshPhysicalMaterial } from 'angular-three';
|
|
2
2
|
import { MeshTransmissionMaterial } from 'angular-three-soba/shaders';
|
|
3
3
|
import * as THREE from 'three';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export
|
|
5
|
+
export type NgtsMeshTranmissionMaterialState = {
|
|
6
6
|
/** transmissionSampler, you can use the threejs transmission sampler texture that is
|
|
7
7
|
* generated once for all transmissive materials. The upside is that it can be faster if you
|
|
8
8
|
* use multiple MeshPhysical and Transmission materials, the downside is that transmissive materials
|
|
@@ -25,6 +25,7 @@ export interface NgtsMeshTranmissionMaterialState {
|
|
|
25
25
|
roughness: number;
|
|
26
26
|
chromaticAberration: number;
|
|
27
27
|
anisotropy: number;
|
|
28
|
+
anisotropicBlur: number;
|
|
28
29
|
distortion: number;
|
|
29
30
|
distortionScale: number;
|
|
30
31
|
temporalDistortion: number;
|
|
@@ -32,9 +33,17 @@ export interface NgtsMeshTranmissionMaterialState {
|
|
|
32
33
|
buffer: THREE.Texture | null;
|
|
33
34
|
/** Internals */
|
|
34
35
|
time: number;
|
|
36
|
+
};
|
|
37
|
+
declare global {
|
|
38
|
+
interface HTMLElementTagNameMap {
|
|
39
|
+
/**
|
|
40
|
+
* @extends ngt-mesh-physical-material
|
|
41
|
+
*/
|
|
42
|
+
'ngts-mesh-transmission-material': NgtsMeshTranmissionMaterialState & NgtMeshPhysicalMaterial;
|
|
43
|
+
}
|
|
35
44
|
}
|
|
36
|
-
export declare class NgtsMeshTranmissionMaterial
|
|
37
|
-
|
|
45
|
+
export declare class NgtsMeshTranmissionMaterial {
|
|
46
|
+
private inputs;
|
|
38
47
|
materialRef: import("angular-three").NgtInjectedRef<MeshTransmissionMaterial & {
|
|
39
48
|
time: number;
|
|
40
49
|
buffer?: THREE.Texture | undefined;
|
|
@@ -43,49 +52,56 @@ export declare class NgtsMeshTranmissionMaterial extends NgtSignalStore<NgtsMesh
|
|
|
43
52
|
* generated once for all transmissive materials. The upside is that it can be faster if you
|
|
44
53
|
* use multiple MeshPhysical and Transmission materials, the downside is that transmissive materials
|
|
45
54
|
* using this can't see other transparent or transmissive objects, default: false */
|
|
46
|
-
set
|
|
55
|
+
set _transmissionSampler(transmissionSampler: boolean);
|
|
47
56
|
/** Render the backside of the material (more cost, better results), default: false */
|
|
48
|
-
set
|
|
57
|
+
set _backside(backside: boolean);
|
|
49
58
|
/** Backside thickness (when backside is true), default: 0 */
|
|
50
|
-
set
|
|
59
|
+
set _backsideThickness(backsideThickness: number);
|
|
51
60
|
/** Resolution of the local buffer, default: undefined (fullscreen) */
|
|
52
|
-
set
|
|
61
|
+
set _resolution(resolution: number);
|
|
53
62
|
/** Resolution of the local buffer for backfaces, default: undefined (fullscreen) */
|
|
54
|
-
set
|
|
63
|
+
set _backsideResolution(backsideResolution: number);
|
|
55
64
|
/** Refraction samples, default: 10 */
|
|
56
|
-
set
|
|
65
|
+
set _samples(samples: number);
|
|
57
66
|
/** Buffer scene background (can be a texture, a cubetexture or a color), default: null */
|
|
58
|
-
set
|
|
59
|
-
set
|
|
60
|
-
set
|
|
61
|
-
set
|
|
62
|
-
set
|
|
63
|
-
set
|
|
64
|
-
set
|
|
65
|
-
set
|
|
66
|
-
set
|
|
67
|
+
set _background(background: THREE.Texture | THREE.Color);
|
|
68
|
+
set _transmission(transmission: number);
|
|
69
|
+
set _thickness(thickness: number);
|
|
70
|
+
set _roughness(roughness: number);
|
|
71
|
+
set _chromaticAberration(chromaticAberration: number);
|
|
72
|
+
set _anisotropy(anisotropy: number);
|
|
73
|
+
set _anisotropicBlur(anisotropicBlur: number);
|
|
74
|
+
set _distortion(distortion: number);
|
|
75
|
+
set _distortionScale(distortionScale: number);
|
|
76
|
+
set _temporalDistortion(temporalDistortion: number);
|
|
67
77
|
/** The scene rendered into a texture (use it to share a texture between materials), default: null */
|
|
68
|
-
set
|
|
78
|
+
set _buffer(buffer: THREE.Texture);
|
|
69
79
|
/** Internals */
|
|
70
|
-
set
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
80
|
+
set _time(time: number);
|
|
81
|
+
transmissionSampler: import("@angular/core").Signal<boolean>;
|
|
82
|
+
backside: import("@angular/core").Signal<boolean>;
|
|
83
|
+
transmission: import("@angular/core").Signal<number>;
|
|
84
|
+
thickness: import("@angular/core").Signal<number>;
|
|
85
|
+
backsideThickness: import("@angular/core").Signal<number>;
|
|
86
|
+
samples: import("@angular/core").Signal<number>;
|
|
87
|
+
roughness: import("@angular/core").Signal<number>;
|
|
88
|
+
anisotropy: import("@angular/core").Signal<number>;
|
|
89
|
+
anisotropicBlur: import("@angular/core").Signal<number>;
|
|
90
|
+
chromaticAberration: import("@angular/core").Signal<number>;
|
|
91
|
+
distortion: import("@angular/core").Signal<number>;
|
|
92
|
+
distortionScale: import("@angular/core").Signal<number>;
|
|
93
|
+
temporalDistortion: import("@angular/core").Signal<number>;
|
|
94
|
+
buffer: import("@angular/core").Signal<THREE.Texture | null>;
|
|
95
|
+
time: import("@angular/core").Signal<number>;
|
|
96
|
+
private discardMaterial;
|
|
97
|
+
private backsideResolution;
|
|
98
|
+
private resolution;
|
|
99
|
+
private fboBackSettings;
|
|
100
|
+
private fboMainSettings;
|
|
101
|
+
fboBackRef: import("angular-three").NgtInjectedRef<THREE.WebGLRenderTarget<THREE.Texture> | null>;
|
|
102
|
+
fboMainRef: import("angular-three").NgtInjectedRef<THREE.WebGLRenderTarget<THREE.Texture> | null>;
|
|
103
|
+
side: 0;
|
|
88
104
|
constructor();
|
|
89
105
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsMeshTranmissionMaterial, never>;
|
|
90
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsMeshTranmissionMaterial, "ngts-mesh-transmission-material", never, { "materialRef": { "alias": "materialRef"; "required": false; }; "
|
|
106
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsMeshTranmissionMaterial, "ngts-mesh-transmission-material", never, { "materialRef": { "alias": "materialRef"; "required": false; }; "_transmissionSampler": { "alias": "transmissionSampler"; "required": false; }; "_backside": { "alias": "backside"; "required": false; }; "_backsideThickness": { "alias": "backsideThickness"; "required": false; }; "_resolution": { "alias": "resolution"; "required": false; }; "_backsideResolution": { "alias": "backsideResolution"; "required": false; }; "_samples": { "alias": "samples"; "required": false; }; "_background": { "alias": "background"; "required": false; }; "_transmission": { "alias": "transmission"; "required": false; }; "_thickness": { "alias": "thickness"; "required": false; }; "_roughness": { "alias": "roughness"; "required": false; }; "_chromaticAberration": { "alias": "chromaticAberration"; "required": false; }; "_anisotropy": { "alias": "anisotropy"; "required": false; }; "_anisotropicBlur": { "alias": "anisotropicBlur"; "required": false; }; "_distortion": { "alias": "distortion"; "required": false; }; "_distortionScale": { "alias": "distortionScale"; "required": false; }; "_temporalDistortion": { "alias": "temporalDistortion"; "required": false; }; "_buffer": { "alias": "buffer"; "required": false; }; "_time": { "alias": "time"; "required": false; }; }, {}, never, never, true, never>;
|
|
91
107
|
}
|
|
@@ -1,20 +1,29 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type NgtMeshStandardMaterial } from 'angular-three';
|
|
2
2
|
import { MeshWobbleMaterial } from 'angular-three-soba/shaders';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export
|
|
4
|
+
export type NgtsMeshWobbleMaterialState = {
|
|
5
5
|
time: number;
|
|
6
6
|
factor: number;
|
|
7
7
|
speed: number;
|
|
8
|
+
};
|
|
9
|
+
declare global {
|
|
10
|
+
interface HTMLElementTagNameMap {
|
|
11
|
+
/**
|
|
12
|
+
* @extends ngt-mesh-standard-material
|
|
13
|
+
*/
|
|
14
|
+
'ngts-mesh-wobble-material': NgtsMeshWobbleMaterialState & NgtMeshStandardMaterial;
|
|
15
|
+
}
|
|
8
16
|
}
|
|
9
|
-
export declare class NgtsMeshWobbleMaterial
|
|
10
|
-
|
|
17
|
+
export declare class NgtsMeshWobbleMaterial {
|
|
18
|
+
private inputs;
|
|
11
19
|
materialRef: import("angular-three").NgtInjectedRef<MeshWobbleMaterial>;
|
|
12
|
-
set
|
|
13
|
-
set
|
|
14
|
-
set
|
|
15
|
-
|
|
16
|
-
|
|
20
|
+
set _time(time: number);
|
|
21
|
+
set _factor(factor: number);
|
|
22
|
+
set _speed(speed: number);
|
|
23
|
+
material: MeshWobbleMaterial;
|
|
24
|
+
time: import("@angular/core").Signal<number>;
|
|
25
|
+
factor: import("@angular/core").Signal<number>;
|
|
17
26
|
constructor();
|
|
18
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsMeshWobbleMaterial, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsMeshWobbleMaterial, "ngts-mesh-wobble-material", never, { "materialRef": { "alias": "materialRef"; "required": false; }; "
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsMeshWobbleMaterial, "ngts-mesh-wobble-material", never, { "materialRef": { "alias": "materialRef"; "required": false; }; "_time": { "alias": "time"; "required": false; }; "_factor": { "alias": "factor"; "required": false; }; "_speed": { "alias": "speed"; "required": false; }; }, {}, never, never, true, never>;
|
|
20
29
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type NgtPointsMaterial } from 'angular-three';
|
|
2
|
+
import * as THREE from 'three';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class PointMaterial extends THREE.PointsMaterial {
|
|
5
|
+
constructor(parameters: THREE.PointsMaterialParameters);
|
|
6
|
+
}
|
|
7
|
+
declare global {
|
|
8
|
+
interface HTMLElementTagNameMap {
|
|
9
|
+
/**
|
|
10
|
+
* @extends ngt-points-material
|
|
11
|
+
*/
|
|
12
|
+
'ngt-point-material': NgtPointsMaterial;
|
|
13
|
+
/**
|
|
14
|
+
* @extends ngt-points-material
|
|
15
|
+
*/
|
|
16
|
+
'ngts-point-material': NgtPointsMaterial;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export declare class NgtsPointMaterial {
|
|
20
|
+
pointMaterialRef: import("angular-three").NgtInjectedRef<PointMaterial>;
|
|
21
|
+
material: PointMaterial;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsPointMaterial, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsPointMaterial, "ngts-point-material", never, { "pointMaterialRef": { "alias": "pointMaterialRef"; "required": false; }; }, {}, never, never, true, never>;
|
|
24
|
+
}
|