angular-three-soba 1.14.0 → 2.0.0-beta.3
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/README.md +2 -2
- package/abstractions/{lib/billboard → billboard}/billboard.d.ts +14 -4
- package/abstractions/catmull-rom-line/catmull-rom-line.d.ts +25 -0
- package/abstractions/cubic-bezier-line/cubic-bezier-line.d.ts +25 -0
- package/abstractions/{lib/edges → edges}/edges.d.ts +11 -7
- package/abstractions/{lib/gizmo-helper → gizmo-helper}/gizmo-helper.d.ts +16 -23
- package/abstractions/gizmo-helper/gizmo-viewcube/gizmo-viewcube-edge.d.ts +22 -0
- package/abstractions/gizmo-helper/gizmo-viewcube/gizmo-viewcube-face.d.ts +30 -0
- package/abstractions/gizmo-helper/gizmo-viewcube/gizmo-viewcube-inputs.d.ts +32 -0
- package/abstractions/{lib/gizmo-helper → gizmo-helper}/gizmo-viewcube/gizmo-viewcube.d.ts +2 -3
- package/abstractions/{lib/gizmo-helper → gizmo-helper}/gizmo-viewport/gizmo-viewport-axis.d.ts +28 -9
- package/abstractions/{lib/gizmo-helper → gizmo-helper}/gizmo-viewport/gizmo-viewport.d.ts +23 -4
- package/abstractions/index.d.ts +11 -11
- package/abstractions/line/line-input.d.ts +42 -0
- package/abstractions/line/line.d.ts +35 -0
- package/abstractions/{lib/quadratic-bezier-line → quadratic-bezier-line}/quadratic-bezier-line.d.ts +12 -8
- package/abstractions/text/text.d.ts +77 -0
- package/abstractions/text-3d/text-3d.d.ts +74 -0
- package/cameras/{lib/camera → camera}/camera-content.d.ts +1 -1
- package/cameras/{lib/camera → camera}/camera.d.ts +12 -8
- package/cameras/cube-camera/cube-camera.d.ts +42 -0
- package/cameras/index.d.ts +5 -4
- package/cameras/{lib/orthographic-camera → orthographic-camera}/orthographic-camera.d.ts +14 -5
- package/controls/index.d.ts +1 -1
- package/controls/{lib/orbit-controls → orbit-controls}/orbit-controls.d.ts +19 -11
- package/esm2022/abstractions/angular-three-soba-abstractions.mjs +1 -1
- package/esm2022/abstractions/billboard/billboard.mjs +71 -0
- package/esm2022/abstractions/catmull-rom-line/catmull-rom-line.mjs +131 -0
- package/esm2022/abstractions/cubic-bezier-line/cubic-bezier-line.mjs +113 -0
- package/esm2022/abstractions/edges/edges.mjs +93 -0
- package/esm2022/abstractions/gizmo-helper/gizmo-helper.mjs +210 -0
- package/esm2022/abstractions/gizmo-helper/gizmo-viewcube/constants.mjs +31 -0
- package/esm2022/abstractions/gizmo-helper/gizmo-viewcube/gizmo-viewcube-edge.mjs +95 -0
- package/esm2022/abstractions/gizmo-helper/gizmo-viewcube/gizmo-viewcube-face.mjs +155 -0
- package/esm2022/abstractions/gizmo-helper/gizmo-viewcube/gizmo-viewcube-inputs.mjs +62 -0
- package/esm2022/abstractions/gizmo-helper/gizmo-viewcube/gizmo-viewcube.mjs +80 -0
- package/esm2022/abstractions/gizmo-helper/gizmo-viewport/gizmo-viewport-axis.mjs +206 -0
- package/esm2022/abstractions/gizmo-helper/gizmo-viewport/gizmo-viewport.mjs +273 -0
- package/esm2022/abstractions/index.mjs +12 -12
- package/esm2022/abstractions/line/line-input.mjs +113 -0
- package/esm2022/abstractions/line/line.mjs +165 -0
- package/esm2022/abstractions/quadratic-bezier-line/quadratic-bezier-line.mjs +128 -0
- package/esm2022/abstractions/text/text.mjs +275 -0
- package/esm2022/abstractions/text-3d/text-3d.mjs +167 -0
- package/esm2022/angular-three-soba.mjs +1 -1
- package/esm2022/cameras/angular-three-soba-cameras.mjs +1 -1
- package/esm2022/cameras/camera/camera-content.mjs +21 -0
- package/esm2022/cameras/camera/camera.mjs +71 -0
- package/esm2022/cameras/cube-camera/cube-camera.mjs +131 -0
- package/esm2022/cameras/index.mjs +6 -5
- package/esm2022/cameras/orthographic-camera/orthographic-camera.mjs +99 -0
- package/esm2022/cameras/perspective-camera/perspective-camera.mjs +47 -0
- package/esm2022/controls/angular-three-soba-controls.mjs +1 -1
- package/esm2022/controls/index.mjs +2 -2
- package/esm2022/controls/orbit-controls/orbit-controls.mjs +165 -0
- package/esm2022/index.mjs +1 -1
- package/esm2022/loaders/angular-three-soba-loaders.mjs +1 -1
- package/esm2022/loaders/gltf-loader/gltf-loader.mjs +33 -0
- package/esm2022/loaders/index.mjs +5 -6
- package/esm2022/loaders/loader/loader.mjs +133 -0
- package/esm2022/loaders/progress/progress.mjs +52 -0
- package/esm2022/loaders/texture-loader/texture-loader.mjs +28 -0
- package/esm2022/materials/angular-three-soba-materials.mjs +1 -1
- package/esm2022/materials/index.mjs +6 -6
- package/esm2022/materials/mesh-distort-material/mesh-distort-material.mjs +73 -0
- package/esm2022/materials/mesh-reflector-material/mesh-reflector-material.mjs +383 -0
- package/esm2022/materials/mesh-refraction-material/mesh-refraction-material.mjs +168 -0
- package/esm2022/materials/mesh-transmission-material/mesh-transmission-material.mjs +257 -0
- package/esm2022/materials/mesh-wobble-material/mesh-wobble-material.mjs +66 -0
- package/esm2022/misc/angular-three-soba-misc.mjs +1 -1
- package/esm2022/misc/animations/animations.mjs +55 -0
- package/esm2022/misc/bake-shadows/bake-shadows.mjs +24 -0
- package/esm2022/misc/depth-buffer/depth-buffer.mjs +46 -0
- package/esm2022/misc/fbo/fbo.mjs +47 -0
- package/esm2022/misc/index.mjs +5 -5
- package/esm2022/performance/adaptive/adaptive-dpr.mjs +46 -0
- package/esm2022/performance/adaptive/adaptive-events.mjs +31 -0
- package/esm2022/performance/angular-three-soba-performance.mjs +1 -1
- package/esm2022/performance/detailed/detailed.mjs +61 -0
- package/esm2022/performance/index.mjs +7 -5
- package/esm2022/performance/instances/instance.mjs +48 -0
- package/esm2022/performance/instances/instances.mjs +189 -0
- package/esm2022/performance/instances/position-mesh.mjs +52 -0
- package/esm2022/performance/stats/stats.mjs +79 -0
- package/esm2022/shaders/angular-three-soba-shaders.mjs +1 -1
- package/esm2022/shaders/blur-pass/blur-pass.mjs +61 -0
- package/esm2022/shaders/caustics-material/caustics-material.mjs +128 -0
- package/esm2022/shaders/caustics-material/caustics-projection-material.mjs +33 -0
- package/esm2022/shaders/convolution-material/convolution-material.mjs +94 -0
- package/esm2022/shaders/discard-material/discard-material.mjs +3 -0
- package/esm2022/shaders/index.mjs +15 -15
- package/esm2022/shaders/mesh-distort-material/mesh-distort-material.mjs +55 -0
- package/esm2022/shaders/mesh-reflector-material/mesh-reflector-material.mjs +223 -0
- package/esm2022/shaders/mesh-refraction-material/mesh-refraction-material.mjs +170 -0
- package/esm2022/shaders/mesh-transmission-material/mesh-transmission-material.mjs +268 -0
- package/esm2022/shaders/mesh-wobble-material/mesh-wobble-material.mjs +37 -0
- package/esm2022/shaders/shader-material/shader-material.mjs +34 -0
- package/esm2022/shaders/soft-shadow-material/soft-shadow-material.mjs +33 -0
- package/esm2022/shaders/sparkles-material/sparkles-material.mjs +47 -0
- package/esm2022/shaders/spot-light-material/spot-light-material.mjs +86 -0
- package/esm2022/shaders/star-field-material/star-field-material.mjs +32 -0
- package/esm2022/staging/accumulative-shadows/accumulative-shadows.mjs +283 -0
- package/esm2022/staging/accumulative-shadows/progressive-light-map.mjs +108 -0
- package/esm2022/staging/accumulative-shadows/randomized-lights.mjs +208 -0
- package/esm2022/staging/angular-three-soba-staging.mjs +1 -1
- package/esm2022/staging/bounds/bounds.mjs +307 -0
- package/esm2022/staging/camera-shake/camera-shake.mjs +117 -0
- package/esm2022/staging/caustics/caustisc.mjs +384 -0
- package/esm2022/staging/center/center.mjs +148 -0
- package/esm2022/staging/cloud/cloud.mjs +164 -0
- package/esm2022/staging/contact-shadows/contact-shadows.mjs +249 -0
- package/esm2022/staging/environment/assets.mjs +13 -0
- package/esm2022/staging/environment/environment-cube.mjs +49 -0
- package/esm2022/staging/environment/environment-ground.mjs +43 -0
- package/esm2022/staging/environment/environment-input.mjs +106 -0
- package/esm2022/staging/environment/environment-map.mjs +53 -0
- package/esm2022/staging/environment/environment-portal.mjs +135 -0
- package/esm2022/staging/environment/environment.mjs +78 -0
- package/esm2022/staging/environment/utils.mjs +84 -0
- package/esm2022/staging/float/float.mjs +82 -0
- package/esm2022/staging/index.mjs +18 -18
- package/esm2022/staging/sky/sky.mjs +114 -0
- package/esm2022/staging/sparkles/sparkles.mjs +161 -0
- package/esm2022/staging/spot-light/spot-light-input.mjs +75 -0
- package/esm2022/staging/spot-light/spot-light-shadow-mesh-input.mjs +57 -0
- package/esm2022/staging/spot-light/spot-light-shadow-mesh.mjs +256 -0
- package/esm2022/staging/spot-light/spot-light.mjs +94 -0
- package/esm2022/staging/spot-light/volumetric-mesh.mjs +101 -0
- package/esm2022/staging/stage/stage.mjs +374 -0
- package/esm2022/staging/stars/stars.mjs +148 -0
- package/fesm2022/angular-three-soba-abstractions.mjs +1116 -890
- package/fesm2022/angular-three-soba-abstractions.mjs.map +1 -1
- package/fesm2022/angular-three-soba-cameras.mjs +126 -122
- package/fesm2022/angular-three-soba-cameras.mjs.map +1 -1
- package/fesm2022/angular-three-soba-controls.mjs +72 -54
- package/fesm2022/angular-three-soba-controls.mjs.map +1 -1
- package/fesm2022/angular-three-soba-loaders.mjs +147 -131
- package/fesm2022/angular-three-soba-loaders.mjs.map +1 -1
- package/fesm2022/angular-three-soba-materials.mjs +340 -258
- package/fesm2022/angular-three-soba-materials.mjs.map +1 -1
- package/fesm2022/angular-three-soba-misc.mjs +140 -123
- package/fesm2022/angular-three-soba-misc.mjs.map +1 -1
- package/fesm2022/angular-three-soba-performance.mjs +383 -106
- package/fesm2022/angular-three-soba-performance.mjs.map +1 -1
- package/fesm2022/angular-three-soba-shaders.mjs +57 -9
- package/fesm2022/angular-three-soba-shaders.mjs.map +1 -1
- package/fesm2022/angular-three-soba-staging.mjs +1609 -1561
- package/fesm2022/angular-three-soba-staging.mjs.map +1 -1
- package/fesm2022/angular-three-soba.mjs.map +1 -1
- package/loaders/gltf-loader/gltf-loader.d.ts +9 -0
- package/loaders/index.d.ts +4 -5
- package/loaders/{lib/loader → loader}/loader.d.ts +20 -15
- package/loaders/progress/progress.d.ts +9 -0
- package/loaders/texture-loader/texture-loader.d.ts +7 -0
- package/materials/index.d.ts +5 -5
- package/materials/{lib/mesh-distort-material → mesh-distort-material}/mesh-distort-material.d.ts +11 -5
- package/materials/mesh-reflector-material/mesh-reflector-material.d.ts +81 -0
- package/materials/mesh-refraction-material/mesh-refraction-material.d.ts +50 -0
- package/materials/{lib/mesh-transmission-material → mesh-transmission-material}/mesh-transmission-material.d.ts +51 -6
- package/materials/{lib/mesh-wobble-material → mesh-wobble-material}/mesh-wobble-material.d.ts +9 -3
- package/misc/animations/animations.d.ts +13 -0
- package/misc/{lib/bake-shadows → bake-shadows}/bake-shadows.d.ts +2 -5
- package/misc/depth-buffer/depth-buffer.d.ts +9 -0
- package/misc/{lib/fbo → fbo}/fbo.d.ts +4 -2
- package/misc/index.d.ts +4 -4
- package/package.json +25 -23
- package/performance/{lib/adaptive → adaptive}/adaptive-dpr.d.ts +4 -7
- package/performance/{lib/adaptive → adaptive}/adaptive-events.d.ts +2 -6
- package/performance/detailed/detailed.d.ts +20 -0
- package/performance/index.d.ts +6 -4
- package/performance/instances/instance.d.ts +9 -0
- package/performance/instances/instances.d.ts +35 -0
- package/performance/instances/position-mesh.d.ts +10 -0
- package/performance/{lib/stats → stats}/stats.d.ts +10 -7
- package/plugin/package.json +1 -1
- package/plugin/src/generators/init/compat.js.map +1 -1
- package/plugin/src/generators/init/init.d.ts +1 -1
- package/plugin/src/generators/init/init.js +1 -1
- package/plugin/src/generators/init/init.js.map +1 -1
- package/plugin/src/index.js.map +1 -1
- package/shaders/{lib/blur-pass → blur-pass}/blur-pass.d.ts +2 -2
- package/shaders/index.d.ts +14 -14
- package/shaders/{lib/mesh-distort-material → mesh-distort-material}/mesh-distort-material.d.ts +1 -1
- package/shaders/{lib/mesh-wobble-material → mesh-wobble-material}/mesh-wobble-material.d.ts +1 -0
- package/shaders/{lib/soft-shadow-material → soft-shadow-material}/soft-shadow-material.d.ts +2 -2
- package/shaders/sparkles-material/sparkles-material.d.ts +3 -0
- package/staging/{lib/accumulative-shadows → accumulative-shadows}/accumulative-shadows.d.ts +55 -17
- package/staging/{lib/accumulative-shadows → accumulative-shadows}/progressive-light-map.d.ts +2 -2
- package/staging/{lib/accumulative-shadows → accumulative-shadows}/randomized-lights.d.ts +45 -10
- package/staging/{lib/bounds → bounds}/bounds.d.ts +32 -22
- package/staging/{lib/camera-shake → camera-shake}/camera-shake.d.ts +15 -11
- package/staging/{lib/caustics/caustics.d.ts → caustics/caustisc.d.ts} +36 -13
- package/staging/{lib/center → center}/center.d.ts +30 -8
- package/staging/cloud/cloud.d.ts +48 -0
- package/staging/{lib/contact-shadows → contact-shadows}/contact-shadows.d.ts +38 -10
- package/staging/environment/environment-cube.d.ts +11 -0
- package/staging/environment/environment-ground.d.ts +13 -0
- package/staging/environment/environment-input.d.ts +68 -0
- package/staging/environment/environment-map.d.ts +11 -0
- package/staging/{lib/environment → environment}/environment-portal.d.ts +5 -7
- package/staging/{lib/environment → environment}/environment.d.ts +2 -2
- package/staging/environment/utils.d.ts +7 -0
- package/staging/float/float.d.ts +27 -0
- package/staging/index.d.ts +17 -17
- package/staging/{lib/sky → sky}/sky.d.ts +26 -5
- package/staging/{lib/sparkles → sparkles}/sparkles.d.ts +30 -10
- package/staging/{lib/spot-light → spot-light}/spot-light-input.d.ts +24 -2
- package/staging/{lib/spot-light/shadow-mesh-input.d.ts → spot-light/spot-light-shadow-mesh-input.d.ts} +18 -3
- package/staging/spot-light/spot-light-shadow-mesh.d.ts +38 -0
- package/staging/{lib/spot-light → spot-light}/spot-light.d.ts +11 -5
- package/staging/{lib/spot-light → spot-light}/volumetric-mesh.d.ts +8 -5
- package/staging/{lib/stage → stage}/stage.d.ts +33 -14
- package/staging/{lib/stars → stars}/stars.d.ts +21 -7
- package/abstractions/lib/catmull-rom-line/catmull-rom-line.d.ts +0 -15
- package/abstractions/lib/cubic-bezier-line/cubic-bezier-line.d.ts +0 -15
- package/abstractions/lib/gizmo-helper/gizmo-viewcube/gizmo-viewcube-edge.d.ts +0 -16
- package/abstractions/lib/gizmo-helper/gizmo-viewcube/gizmo-viewcube-face.d.ts +0 -24
- package/abstractions/lib/gizmo-helper/gizmo-viewcube/gizmo-viewcube-inputs.d.ts +0 -14
- package/abstractions/lib/line/line-input.d.ts +0 -19
- package/abstractions/lib/line/line.d.ts +0 -21
- package/abstractions/lib/text/text.d.ts +0 -21
- package/abstractions/lib/text-3d/text-3d.d.ts +0 -39
- package/assets/default-spot-light-shadow.glsl +0 -10
- package/cameras/lib/cube-camera/cube-camera.d.ts +0 -27
- package/esm2022/abstractions/lib/billboard/billboard.mjs +0 -74
- package/esm2022/abstractions/lib/catmull-rom-line/catmull-rom-line.mjs +0 -120
- package/esm2022/abstractions/lib/cubic-bezier-line/cubic-bezier-line.mjs +0 -99
- package/esm2022/abstractions/lib/edges/edges.mjs +0 -96
- package/esm2022/abstractions/lib/gizmo-helper/gizmo-helper.mjs +0 -213
- package/esm2022/abstractions/lib/gizmo-helper/gizmo-viewcube/constants.mjs +0 -31
- package/esm2022/abstractions/lib/gizmo-helper/gizmo-viewcube/gizmo-viewcube-edge.mjs +0 -92
- package/esm2022/abstractions/lib/gizmo-helper/gizmo-viewcube/gizmo-viewcube-face.mjs +0 -184
- package/esm2022/abstractions/lib/gizmo-helper/gizmo-viewcube/gizmo-viewcube-inputs.mjs +0 -46
- package/esm2022/abstractions/lib/gizmo-helper/gizmo-viewcube/gizmo-viewcube.mjs +0 -134
- package/esm2022/abstractions/lib/gizmo-helper/gizmo-viewport/gizmo-viewport-axis.mjs +0 -195
- package/esm2022/abstractions/lib/gizmo-helper/gizmo-viewport/gizmo-viewport.mjs +0 -267
- package/esm2022/abstractions/lib/line/line-input.mjs +0 -76
- package/esm2022/abstractions/lib/line/line.mjs +0 -133
- package/esm2022/abstractions/lib/quadratic-bezier-line/quadratic-bezier-line.mjs +0 -128
- package/esm2022/abstractions/lib/text/text.mjs +0 -115
- package/esm2022/abstractions/lib/text-3d/text-3d.mjs +0 -145
- package/esm2022/cameras/lib/camera/camera-content.mjs +0 -21
- package/esm2022/cameras/lib/camera/camera.mjs +0 -75
- package/esm2022/cameras/lib/cube-camera/cube-camera.mjs +0 -131
- package/esm2022/cameras/lib/orthographic-camera/orthographic-camera.mjs +0 -93
- package/esm2022/cameras/lib/perspective-camera/perspective-camera.mjs +0 -47
- package/esm2022/controls/lib/orbit-controls/orbit-controls.mjs +0 -147
- package/esm2022/loaders/lib/cube-texture-loader/cube-texture-loader.mjs +0 -10
- package/esm2022/loaders/lib/gltf-loader/gltf-loader.mjs +0 -32
- package/esm2022/loaders/lib/loader/loader.mjs +0 -134
- package/esm2022/loaders/lib/progress/progress.mjs +0 -39
- package/esm2022/loaders/lib/texture-loader/texture-loader.mjs +0 -19
- package/esm2022/materials/lib/mesh-distort-material/mesh-distort-material.mjs +0 -75
- package/esm2022/materials/lib/mesh-reflector-material/mesh-reflector-material.mjs +0 -328
- package/esm2022/materials/lib/mesh-refraction-material/mesh-refraction-material.mjs +0 -158
- package/esm2022/materials/lib/mesh-transmission-material/mesh-transmission-material.mjs +0 -238
- package/esm2022/materials/lib/mesh-wobble-material/mesh-wobble-material.mjs +0 -68
- package/esm2022/misc/lib/animations/animations.mjs +0 -52
- package/esm2022/misc/lib/bake-shadows/bake-shadows.mjs +0 -26
- package/esm2022/misc/lib/depth-buffer/depth-buffer.mjs +0 -39
- package/esm2022/misc/lib/fbo/fbo.mjs +0 -39
- package/esm2022/performance/lib/adaptive/adaptive-dpr.mjs +0 -47
- package/esm2022/performance/lib/adaptive/adaptive-events.mjs +0 -37
- package/esm2022/performance/lib/detailed/detailed.mjs +0 -54
- package/esm2022/performance/lib/stats/stats.mjs +0 -80
- package/esm2022/shaders/lib/blur-pass/blur-pass.mjs +0 -61
- package/esm2022/shaders/lib/caustics-material/caustics-material.mjs +0 -128
- package/esm2022/shaders/lib/caustics-projection-material/caustics-projection-material.mjs +0 -33
- package/esm2022/shaders/lib/convolution-material/convolution-material.mjs +0 -94
- package/esm2022/shaders/lib/discard-material/discard-material.mjs +0 -3
- package/esm2022/shaders/lib/mesh-distort-material/mesh-distort-material.mjs +0 -55
- package/esm2022/shaders/lib/mesh-reflector-material/mesh-reflector-material.mjs +0 -223
- package/esm2022/shaders/lib/mesh-refraction-material/mesh-refraction-material.mjs +0 -169
- package/esm2022/shaders/lib/mesh-transmission-material/mesh-transmission-material.mjs +0 -268
- package/esm2022/shaders/lib/mesh-wobble-material/mesh-wobble-material.mjs +0 -37
- package/esm2022/shaders/lib/shader-material/shader-material.mjs +0 -34
- package/esm2022/shaders/lib/soft-shadow-material/soft-shadow-material.mjs +0 -33
- package/esm2022/shaders/lib/spot-light-material/spot-light-material.mjs +0 -86
- package/esm2022/shaders/lib/star-field-material/star-field-material.mjs +0 -32
- package/esm2022/staging/lib/accumulative-shadows/accumulative-shadows.mjs +0 -249
- package/esm2022/staging/lib/accumulative-shadows/progressive-light-map.mjs +0 -108
- package/esm2022/staging/lib/accumulative-shadows/randomized-lights.mjs +0 -201
- package/esm2022/staging/lib/bounds/bounds.mjs +0 -284
- package/esm2022/staging/lib/camera-shake/camera-shake.mjs +0 -122
- package/esm2022/staging/lib/caustics/caustics.mjs +0 -364
- package/esm2022/staging/lib/center/center.mjs +0 -143
- package/esm2022/staging/lib/cloud/cloud.mjs +0 -160
- package/esm2022/staging/lib/contact-shadows/contact-shadows.mjs +0 -228
- package/esm2022/staging/lib/environment/assets.mjs +0 -13
- package/esm2022/staging/lib/environment/environment-cube.mjs +0 -41
- package/esm2022/staging/lib/environment/environment-ground.mjs +0 -67
- package/esm2022/staging/lib/environment/environment-inputs.mjs +0 -87
- package/esm2022/staging/lib/environment/environment-map.mjs +0 -39
- package/esm2022/staging/lib/environment/environment-portal.mjs +0 -111
- package/esm2022/staging/lib/environment/environment.mjs +0 -165
- package/esm2022/staging/lib/environment/utils.mjs +0 -70
- package/esm2022/staging/lib/float/float.mjs +0 -77
- package/esm2022/staging/lib/sky/sky.mjs +0 -109
- package/esm2022/staging/lib/sparkles/sparkles.mjs +0 -210
- package/esm2022/staging/lib/spot-light/common.mjs +0 -42
- package/esm2022/staging/lib/spot-light/shadow-mesh-input.mjs +0 -51
- package/esm2022/staging/lib/spot-light/spot-light-input.mjs +0 -62
- package/esm2022/staging/lib/spot-light/spot-light-shadow-no-shader.mjs +0 -74
- package/esm2022/staging/lib/spot-light/spot-light-shadow-shader.mjs +0 -126
- package/esm2022/staging/lib/spot-light/spot-light-shadow.mjs +0 -63
- package/esm2022/staging/lib/spot-light/spot-light.mjs +0 -117
- package/esm2022/staging/lib/spot-light/volumetric-mesh.mjs +0 -86
- package/esm2022/staging/lib/stage/stage.mjs +0 -368
- package/esm2022/staging/lib/stars/stars.mjs +0 -140
- package/loaders/lib/cube-texture-loader/cube-texture-loader.d.ts +0 -3
- package/loaders/lib/gltf-loader/gltf-loader.d.ts +0 -8
- package/loaders/lib/progress/progress.d.ts +0 -16
- package/loaders/lib/texture-loader/texture-loader.d.ts +0 -5
- package/materials/lib/mesh-reflector-material/mesh-reflector-material.d.ts +0 -41
- package/materials/lib/mesh-refraction-material/mesh-refraction-material.d.ts +0 -28
- package/misc/lib/animations/animations.d.ts +0 -13
- package/misc/lib/depth-buffer/depth-buffer.d.ts +0 -7
- package/performance/lib/detailed/detailed.d.ts +0 -13
- package/staging/lib/cloud/cloud.d.ts +0 -23
- package/staging/lib/environment/environment-cube.d.ts +0 -11
- package/staging/lib/environment/environment-ground.d.ts +0 -9
- package/staging/lib/environment/environment-inputs.d.ts +0 -28
- package/staging/lib/environment/environment-map.d.ts +0 -10
- package/staging/lib/environment/utils.d.ts +0 -8
- package/staging/lib/float/float.d.ts +0 -16
- package/staging/lib/spot-light/common.d.ts +0 -3
- package/staging/lib/spot-light/spot-light-shadow-no-shader.d.ts +0 -14
- package/staging/lib/spot-light/spot-light-shadow-shader.d.ts +0 -25
- package/staging/lib/spot-light/spot-light-shadow.d.ts +0 -6
- /package/abstractions/{lib/gizmo-helper → gizmo-helper}/gizmo-viewcube/constants.d.ts +0 -0
- /package/cameras/{lib/perspective-camera → perspective-camera}/perspective-camera.d.ts +0 -0
- /package/plugin/{README.md → libs/plugin/README.md} +0 -0
- /package/shaders/{lib/caustics-material → caustics-material}/caustics-material.d.ts +0 -0
- /package/shaders/{lib/caustics-projection-material → caustics-material}/caustics-projection-material.d.ts +0 -0
- /package/shaders/{lib/convolution-material → convolution-material}/convolution-material.d.ts +0 -0
- /package/shaders/{lib/discard-material → discard-material}/discard-material.d.ts +0 -0
- /package/shaders/{lib/mesh-reflector-material → mesh-reflector-material}/mesh-reflector-material.d.ts +0 -0
- /package/shaders/{lib/mesh-refraction-material → mesh-refraction-material}/mesh-refraction-material.d.ts +0 -0
- /package/shaders/{lib/mesh-transmission-material → mesh-transmission-material}/mesh-transmission-material.d.ts +0 -0
- /package/shaders/{lib/shader-material → shader-material}/shader-material.d.ts +0 -0
- /package/shaders/{lib/spot-light-material → spot-light-material}/spot-light-material.d.ts +0 -0
- /package/shaders/{lib/star-field-material → star-field-material}/star-field-material.d.ts +0 -0
- /package/staging/{lib/environment → environment}/assets.d.ts +0 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { NgtSignalStore, type NgtBeforeRenderEvent, type NgtGroup } from 'angular-three';
|
|
2
|
+
import { Group } from 'three';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface NgtsCloudState {
|
|
5
|
+
opacity: number;
|
|
6
|
+
speed: number;
|
|
7
|
+
width: number;
|
|
8
|
+
depth: number;
|
|
9
|
+
segments: number;
|
|
10
|
+
texture: string;
|
|
11
|
+
color: THREE.ColorRepresentation;
|
|
12
|
+
depthTest: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare global {
|
|
15
|
+
interface HTMLElementTagNameMap {
|
|
16
|
+
'ngts-cloud': NgtsCloudState & NgtGroup;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export declare class NgtsCloud extends NgtSignalStore<NgtsCloudState> {
|
|
20
|
+
#private;
|
|
21
|
+
groupRef: import("angular-three").NgtInjectedRef<Group>;
|
|
22
|
+
set opacity(opacity: number);
|
|
23
|
+
set speed(speed: number);
|
|
24
|
+
set width(width: number);
|
|
25
|
+
set depth(depth: number);
|
|
26
|
+
set segments(segments: number);
|
|
27
|
+
set texture(texture: string);
|
|
28
|
+
set color(color: THREE.ColorRepresentation);
|
|
29
|
+
set depthTest(depthTest: boolean);
|
|
30
|
+
readonly cloudSegments: import("@angular/core").Signal<number>;
|
|
31
|
+
readonly cloudDepth: import("@angular/core").Signal<number>;
|
|
32
|
+
readonly cloudDepthTest: import("@angular/core").Signal<boolean>;
|
|
33
|
+
readonly cloudOpacity: import("@angular/core").Signal<number>;
|
|
34
|
+
readonly cloudColor: import("@angular/core").Signal<import("three").ColorRepresentation>;
|
|
35
|
+
readonly encoding: import("@angular/core").Signal<import("three").TextureEncoding>;
|
|
36
|
+
readonly cloudTexture: import("@angular/core").Signal<import("three").Texture>;
|
|
37
|
+
readonly clouds: import("@angular/core").Signal<{
|
|
38
|
+
x: number;
|
|
39
|
+
y: number;
|
|
40
|
+
scale: number;
|
|
41
|
+
density: number;
|
|
42
|
+
rotation: number;
|
|
43
|
+
}[]>;
|
|
44
|
+
constructor();
|
|
45
|
+
onBeforeRender({ state, object }: NgtBeforeRenderEvent<Group>): void;
|
|
46
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsCloud, never>;
|
|
47
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsCloud, "ngts-cloud", never, { "groupRef": { "alias": "groupRef"; "required": false; }; "opacity": { "alias": "opacity"; "required": false; }; "speed": { "alias": "speed"; "required": false; }; "width": { "alias": "width"; "required": false; }; "depth": { "alias": "depth"; "required": false; }; "segments": { "alias": "segments"; "required": false; }; "texture": { "alias": "texture"; "required": false; }; "color": { "alias": "color"; "required": false; }; "depthTest": { "alias": "depthTest"; "required": false; }; }, {}, never, never, true, never>;
|
|
48
|
+
}
|
|
@@ -1,12 +1,27 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NgtSignalStore, type NgtGroup } from 'angular-three';
|
|
2
2
|
import * as THREE from 'three';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
export interface NgtsContactShadowsState {
|
|
5
|
+
opacity: number;
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
blur: number;
|
|
9
|
+
far: number;
|
|
10
|
+
smooth: boolean;
|
|
11
|
+
resolution: number;
|
|
12
|
+
frames: number;
|
|
13
|
+
scale: number | [x: number, y: number];
|
|
14
|
+
color: THREE.ColorRepresentation;
|
|
15
|
+
depthWrite: boolean;
|
|
16
|
+
renderOrder: number;
|
|
17
|
+
}
|
|
18
|
+
declare global {
|
|
19
|
+
interface HTMLElementTagNameMap {
|
|
20
|
+
'ngts-contact-shadows': NgtsContactShadowsState & NgtGroup;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
export declare class NgtsContactShadows extends NgtSignalStore<NgtsContactShadowsState> {
|
|
24
|
+
#private;
|
|
10
25
|
contactShadowsRef: import("angular-three").NgtInjectedRef<THREE.Group>;
|
|
11
26
|
set opacity(opacity: number);
|
|
12
27
|
set width(width: number);
|
|
@@ -20,10 +35,23 @@ export declare class NgtsContactShadows extends NgtRxStore {
|
|
|
20
35
|
set color(color: THREE.ColorRepresentation);
|
|
21
36
|
set depthWrite(depthWrite: boolean);
|
|
22
37
|
set renderOrder(renderOrder: number);
|
|
38
|
+
readonly Math: Math;
|
|
39
|
+
readonly shadowCameraRef: import("angular-three").NgtInjectedRef<THREE.OrthographicCamera>;
|
|
40
|
+
readonly encoding: import("@angular/core").Signal<THREE.TextureEncoding>;
|
|
41
|
+
readonly shadowRenderOrder: import("@angular/core").Signal<number>;
|
|
42
|
+
readonly shadowOpacity: import("@angular/core").Signal<number>;
|
|
43
|
+
readonly shadowDepthWrite: import("@angular/core").Signal<boolean>;
|
|
44
|
+
readonly cameraArgs: import("@angular/core").Signal<number[]>;
|
|
45
|
+
readonly contactShadows: import("@angular/core").Signal<{
|
|
46
|
+
renderTarget: THREE.WebGLRenderTarget;
|
|
47
|
+
planeGeometry: THREE.PlaneGeometry;
|
|
48
|
+
depthMaterial: THREE.MeshDepthMaterial;
|
|
49
|
+
blurPlane: THREE.Mesh<THREE.PlaneGeometry, THREE.Material | THREE.Material[]>;
|
|
50
|
+
horizontalBlurMaterial: THREE.ShaderMaterial;
|
|
51
|
+
verticalBlurMaterial: THREE.ShaderMaterial;
|
|
52
|
+
renderTargetBlur: THREE.WebGLRenderTarget;
|
|
53
|
+
}>;
|
|
23
54
|
constructor();
|
|
24
|
-
initialize(): void;
|
|
25
|
-
private onBeforeRender;
|
|
26
|
-
private blurShadows;
|
|
27
55
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsContactShadows, never>;
|
|
28
56
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsContactShadows, "ngts-contact-shadows", never, { "contactShadowsRef": { "alias": "contactShadowsRef"; "required": false; }; "opacity": { "alias": "opacity"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "blur": { "alias": "blur"; "required": false; }; "far": { "alias": "far"; "required": false; }; "smooth": { "alias": "smooth"; "required": false; }; "resolution": { "alias": "resolution"; "required": false; }; "frames": { "alias": "frames"; "required": false; }; "scale": { "alias": "scale"; "required": false; }; "color": { "alias": "color"; "required": false; }; "depthWrite": { "alias": "depthWrite"; "required": false; }; "renderOrder": { "alias": "renderOrder"; "required": false; }; }, {}, never, never, true, never>;
|
|
29
57
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { NgtsEnvironmentInput } from './environment-input';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class NgtsEnvironmentCube {
|
|
4
|
+
#private;
|
|
5
|
+
protected readonly environmentInput: NgtsEnvironmentInput;
|
|
6
|
+
readonly textureRef: import("angular-three").NgtInjectedRef<import("three").Texture | import("three").CubeTexture>;
|
|
7
|
+
set background(background: boolean);
|
|
8
|
+
constructor();
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsEnvironmentCube, never>;
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgtsEnvironmentCube, "ngts-environment-cube", never, { "background": { "alias": "background"; "required": false; }; }, {}, never, never, true, never>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { NgtsEnvironmentInput } from './environment-input';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class NgtsEnvironmentGround {
|
|
4
|
+
#private;
|
|
5
|
+
protected readonly environmentInput: NgtsEnvironmentInput;
|
|
6
|
+
readonly texture: import("@angular/core").Signal<import("three").Texture>;
|
|
7
|
+
readonly groundArgs: import("@angular/core").Signal<import("three").Texture[]>;
|
|
8
|
+
readonly height: import("@angular/core").Signal<any>;
|
|
9
|
+
readonly radius: import("@angular/core").Signal<any>;
|
|
10
|
+
readonly scale: import("@angular/core").Signal<any>;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsEnvironmentGround, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsEnvironmentGround, "ngts-environment-ground", never, {}, {}, never, never, true, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { NgtSignalStore } from 'angular-three';
|
|
3
|
+
import { Loader, Scene, Texture, TextureEncoding } from 'three';
|
|
4
|
+
import { NgtsEnvironmentPresetsType } from './assets';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export interface NgtsEnvironmentInputState {
|
|
7
|
+
frames?: number;
|
|
8
|
+
near?: number;
|
|
9
|
+
far?: number;
|
|
10
|
+
resolution?: number;
|
|
11
|
+
background?: boolean | 'only';
|
|
12
|
+
blur?: number;
|
|
13
|
+
map?: Texture;
|
|
14
|
+
files?: string | string[];
|
|
15
|
+
path?: string;
|
|
16
|
+
preset?: NgtsEnvironmentPresetsType;
|
|
17
|
+
scene?: Scene | ElementRef<Scene>;
|
|
18
|
+
extensions?: (loader: Loader) => void;
|
|
19
|
+
ground?: boolean | {
|
|
20
|
+
radius?: number;
|
|
21
|
+
height?: number;
|
|
22
|
+
scale?: number;
|
|
23
|
+
};
|
|
24
|
+
encoding?: TextureEncoding;
|
|
25
|
+
}
|
|
26
|
+
export declare abstract class NgtsEnvironmentInput extends NgtSignalStore<NgtsEnvironmentInputState> {
|
|
27
|
+
set frames(frames: NgtsEnvironmentInputState['frames']);
|
|
28
|
+
set near(near: NgtsEnvironmentInputState['near']);
|
|
29
|
+
set far(far: NgtsEnvironmentInputState['far']);
|
|
30
|
+
set resolution(resolution: NgtsEnvironmentInputState['resolution']);
|
|
31
|
+
set background(background: NgtsEnvironmentInputState['background']);
|
|
32
|
+
set blur(blur: NgtsEnvironmentInputState['blur']);
|
|
33
|
+
set map(map: NgtsEnvironmentInputState['map']);
|
|
34
|
+
set files(files: NgtsEnvironmentInputState['files']);
|
|
35
|
+
set path(path: NgtsEnvironmentInputState['path']);
|
|
36
|
+
set preset(preset: NgtsEnvironmentInputState['preset']);
|
|
37
|
+
set scene(scene: NgtsEnvironmentInputState['scene']);
|
|
38
|
+
set extensions(extensions: NgtsEnvironmentInputState['extensions']);
|
|
39
|
+
set ground(ground: NgtsEnvironmentInputState['ground']);
|
|
40
|
+
set encoding(encoding: NgtsEnvironmentInputState['encoding']);
|
|
41
|
+
readonly environmentFrames: import("@angular/core").Signal<number | undefined>;
|
|
42
|
+
readonly environmentNear: import("@angular/core").Signal<number | undefined>;
|
|
43
|
+
readonly environmentFar: import("@angular/core").Signal<number | undefined>;
|
|
44
|
+
readonly environmentResolution: import("@angular/core").Signal<number | undefined>;
|
|
45
|
+
readonly environmentBackground: import("@angular/core").Signal<boolean | "only" | undefined>;
|
|
46
|
+
readonly environmentBlur: import("@angular/core").Signal<number | undefined>;
|
|
47
|
+
readonly environmentMap: import("@angular/core").Signal<Texture | undefined>;
|
|
48
|
+
readonly environmentFiles: import("@angular/core").Signal<string | string[] | undefined>;
|
|
49
|
+
readonly environmentPath: import("@angular/core").Signal<string | undefined>;
|
|
50
|
+
readonly environmentPreset: import("@angular/core").Signal<"sunset" | "dawn" | "night" | "warehouse" | "forest" | "apartment" | "studio" | "city" | "park" | "lobby" | undefined>;
|
|
51
|
+
readonly environmentScene: import("@angular/core").Signal<Scene | ElementRef<Scene> | undefined>;
|
|
52
|
+
readonly environmentExtensions: import("@angular/core").Signal<((loader: Loader) => void) | undefined>;
|
|
53
|
+
readonly environmentGround: import("@angular/core").Signal<boolean | {
|
|
54
|
+
radius?: number | undefined;
|
|
55
|
+
height?: number | undefined;
|
|
56
|
+
scale?: number | undefined;
|
|
57
|
+
} | undefined>;
|
|
58
|
+
readonly environmentEncoding: import("@angular/core").Signal<TextureEncoding | undefined>;
|
|
59
|
+
readonly environmentParams: import("@angular/core").Signal<{
|
|
60
|
+
files: string | string[] | undefined;
|
|
61
|
+
path: string | undefined;
|
|
62
|
+
preset: "sunset" | "dawn" | "night" | "warehouse" | "forest" | "apartment" | "studio" | "city" | "park" | "lobby" | undefined;
|
|
63
|
+
extensions: ((loader: Loader) => void) | undefined;
|
|
64
|
+
encoding: TextureEncoding | undefined;
|
|
65
|
+
}>;
|
|
66
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsEnvironmentInput, never>;
|
|
67
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgtsEnvironmentInput, never, never, { "frames": { "alias": "frames"; "required": false; }; "near": { "alias": "near"; "required": false; }; "far": { "alias": "far"; "required": false; }; "resolution": { "alias": "resolution"; "required": false; }; "background": { "alias": "background"; "required": false; }; "blur": { "alias": "blur"; "required": false; }; "map": { "alias": "map"; "required": false; }; "files": { "alias": "files"; "required": false; }; "path": { "alias": "path"; "required": false; }; "preset": { "alias": "preset"; "required": false; }; "scene": { "alias": "scene"; "required": false; }; "extensions": { "alias": "extensions"; "required": false; }; "ground": { "alias": "ground"; "required": false; }; "encoding": { "alias": "encoding"; "required": false; }; }, {}, never, never, false, never>;
|
|
68
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { NgtsEnvironmentInput } from './environment-input';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class NgtsEnvironmentMap {
|
|
4
|
+
#private;
|
|
5
|
+
protected readonly environmentInput: NgtsEnvironmentInput;
|
|
6
|
+
set map(map: THREE.Texture);
|
|
7
|
+
set background(background: boolean);
|
|
8
|
+
constructor();
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsEnvironmentMap, never>;
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgtsEnvironmentMap, "ngts-environment-map", never, { "map": { "alias": "map"; "required": false; }; "background": { "alias": "background"; "required": false; }; }, {}, never, never, true, never>;
|
|
11
|
+
}
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
1
|
import * as THREE from 'three';
|
|
3
|
-
import {
|
|
2
|
+
import { NgtsEnvironmentInput } from './environment-input';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class NgtsEnvironmentPortal
|
|
4
|
+
export declare class NgtsEnvironmentPortal {
|
|
5
|
+
#private;
|
|
6
|
+
protected readonly environmentInput: NgtsEnvironmentInput;
|
|
6
7
|
readonly virtualSceneRef: import("angular-three").NgtInjectedRef<THREE.Scene>;
|
|
7
8
|
readonly cubeCameraRef: import("angular-three").NgtInjectedRef<THREE.CubeCamera>;
|
|
8
|
-
|
|
9
|
+
readonly cameraArgs: import("@angular/core").Signal<(number | THREE.WebGLCubeRenderTarget)[]>;
|
|
9
10
|
constructor();
|
|
10
|
-
ngOnInit(): void;
|
|
11
|
-
private setEnvProps;
|
|
12
|
-
private onBeforeRender;
|
|
13
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsEnvironmentPortal, never>;
|
|
14
12
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsEnvironmentPortal, "ngts-environment-portal", never, {}, {}, never, ["*"], true, never>;
|
|
15
13
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { TemplateRef } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { NgtsEnvironmentInput } from './environment-input';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class NgtsEnvironmentContent {
|
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsEnvironmentContent, never>;
|
|
6
6
|
static ɵdir: i0.ɵɵDirectiveDeclaration<NgtsEnvironmentContent, "ng-template[ngtsEnvironmentContent]", never, {}, {}, never, never, true, never>;
|
|
7
7
|
}
|
|
8
|
-
export declare class NgtsEnvironment extends
|
|
8
|
+
export declare class NgtsEnvironment extends NgtsEnvironmentInput {
|
|
9
9
|
content?: TemplateRef<unknown>;
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsEnvironment, never>;
|
|
11
11
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsEnvironment, "ngts-environment", never, {}, {}, ["content"], never, true, never>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ElementRef, Injector } from '@angular/core';
|
|
2
|
+
import { CubeTexture } from 'three';
|
|
3
|
+
import { type NgtsEnvironmentInput } from './environment-input';
|
|
4
|
+
export declare function setEnvProps(background: boolean | 'only', scene: THREE.Scene | ElementRef<THREE.Scene> | undefined, defaultScene: THREE.Scene, texture: THREE.Texture, blur?: number): () => void;
|
|
5
|
+
type NgtsInjectEnvironmentParams = Partial<Pick<NgtsEnvironmentInput, 'files' | 'path' | 'preset' | 'extensions' | 'encoding'>>;
|
|
6
|
+
export declare function injectNgtsEnvironment(paramsFactory: () => Partial<NgtsInjectEnvironmentParams>, injector?: Injector): import("angular-three").NgtInjectedRef<import("three").Texture | CubeTexture>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { NgtSignalStore, type NgtGroup } from 'angular-three';
|
|
2
|
+
import * as THREE from 'three';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export type NgtsFloatState = {
|
|
5
|
+
enabled: boolean;
|
|
6
|
+
speed: number;
|
|
7
|
+
floatIntensity: number;
|
|
8
|
+
rotationIntensity: number;
|
|
9
|
+
floatingRange: [number?, number?];
|
|
10
|
+
};
|
|
11
|
+
declare global {
|
|
12
|
+
interface HTMLElementTagNameMap {
|
|
13
|
+
'ngts-float': NgtsFloatState & NgtGroup;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export declare class NgtsFloat extends NgtSignalStore<NgtsFloatState> {
|
|
17
|
+
#private;
|
|
18
|
+
floatRef: import("angular-three").NgtInjectedRef<THREE.Group>;
|
|
19
|
+
set enabled(enabled: boolean);
|
|
20
|
+
set speed(speed: number);
|
|
21
|
+
set rotationIntensity(rotationIntensity: number);
|
|
22
|
+
set floatIntensity(floatIntensity: number);
|
|
23
|
+
set floatingRange(floatingRange: [number?, number?]);
|
|
24
|
+
constructor();
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsFloat, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsFloat, "ngts-float", never, { "floatRef": { "alias": "floatRef"; "required": false; }; "enabled": { "alias": "enabled"; "required": false; }; "speed": { "alias": "speed"; "required": false; }; "rotationIntensity": { "alias": "rotationIntensity"; "required": false; }; "floatIntensity": { "alias": "floatIntensity"; "required": false; }; "floatingRange": { "alias": "floatingRange"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
27
|
+
}
|
package/staging/index.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './
|
|
11
|
-
export * from './
|
|
12
|
-
export * from './
|
|
13
|
-
export * from './
|
|
14
|
-
export * from './
|
|
15
|
-
export
|
|
16
|
-
export * from './
|
|
17
|
-
export * from './
|
|
1
|
+
export * from './accumulative-shadows/accumulative-shadows';
|
|
2
|
+
export * from './accumulative-shadows/randomized-lights';
|
|
3
|
+
export * from './bounds/bounds';
|
|
4
|
+
export * from './camera-shake/camera-shake';
|
|
5
|
+
export * from './caustics/caustisc';
|
|
6
|
+
export * from './center/center';
|
|
7
|
+
export * from './cloud/cloud';
|
|
8
|
+
export * from './contact-shadows/contact-shadows';
|
|
9
|
+
export * from './environment/assets';
|
|
10
|
+
export * from './environment/environment';
|
|
11
|
+
export * from './float/float';
|
|
12
|
+
export * from './sky/sky';
|
|
13
|
+
export * from './sparkles/sparkles';
|
|
14
|
+
export * from './spot-light/spot-light';
|
|
15
|
+
export { NgtsSpotLightShadow } from './spot-light/spot-light-shadow-mesh';
|
|
16
|
+
export * from './stage/stage';
|
|
17
|
+
export * from './stars/stars';
|
|
@@ -1,9 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { NgtSignalStore } from 'angular-three';
|
|
2
|
+
import * as THREE from 'three';
|
|
3
3
|
import { Sky } from 'three-stdlib';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export
|
|
6
|
-
|
|
5
|
+
export interface NgtsSkyState {
|
|
6
|
+
distance: number;
|
|
7
|
+
sunPosition: THREE.Vector3 | Parameters<THREE.Vector3['set']>;
|
|
8
|
+
inclination: number;
|
|
9
|
+
azimuth: number;
|
|
10
|
+
mieCoefficient: number;
|
|
11
|
+
mieDirectionalG: number;
|
|
12
|
+
rayleigh: number;
|
|
13
|
+
turbidity: number;
|
|
14
|
+
}
|
|
15
|
+
declare global {
|
|
16
|
+
interface HTMLElementTagNameMap {
|
|
17
|
+
'ngts-sky': NgtsSkyState & Sky;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export declare class NgtsSky extends NgtSignalStore<NgtsSkyState> {
|
|
21
|
+
#private;
|
|
7
22
|
skyRef: import("angular-three").NgtInjectedRef<Sky>;
|
|
8
23
|
set distance(distance: number);
|
|
9
24
|
set sunPosition(sunPosition: THREE.Vector3 | Parameters<THREE.Vector3['set']>);
|
|
@@ -14,7 +29,13 @@ export declare class NgtsSky extends NgtRxStore {
|
|
|
14
29
|
set rayleigh(rayleigh: number);
|
|
15
30
|
set turbidity(turbidity: number);
|
|
16
31
|
readonly sky: Sky;
|
|
17
|
-
|
|
32
|
+
readonly skyMieCoefficient: import("@angular/core").Signal<number>;
|
|
33
|
+
readonly skyMieDirectionalG: import("@angular/core").Signal<number>;
|
|
34
|
+
readonly skyRayleigh: import("@angular/core").Signal<number>;
|
|
35
|
+
readonly skyTurbidity: import("@angular/core").Signal<number>;
|
|
36
|
+
readonly calculatedSunPosition: import("@angular/core").Signal<THREE.Vector3 | [x: number, y: number, z: number]>;
|
|
37
|
+
readonly scale: import("@angular/core").Signal<THREE.Vector3>;
|
|
38
|
+
constructor();
|
|
18
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsSky, never>;
|
|
19
40
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsSky, "ngts-sky", never, { "skyRef": { "alias": "skyRef"; "required": false; }; "distance": { "alias": "distance"; "required": false; }; "sunPosition": { "alias": "sunPosition"; "required": false; }; "inclination": { "alias": "inclination"; "required": false; }; "azimuth": { "alias": "azimuth"; "required": false; }; "mieCoefficient": { "alias": "mieCoefficient"; "required": false; }; "mieDirectionalG": { "alias": "mieDirectionalG"; "required": false; }; "rayleigh": { "alias": "rayleigh"; "required": false; }; "turbidity": { "alias": "turbidity"; "required": false; }; }, {}, never, never, true, never>;
|
|
20
41
|
}
|
|
@@ -1,11 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Signal } from '@angular/core';
|
|
2
|
+
import { NgtSignalStore } from 'angular-three';
|
|
3
|
+
import * as THREE from 'three';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
export interface NgtsSparklesState {
|
|
6
|
+
/** Number of particles (default: 100) */
|
|
7
|
+
count: number;
|
|
8
|
+
/** Speed of particles (default: 1) */
|
|
9
|
+
speed: number | Float32Array;
|
|
10
|
+
/** Opacity of particles (default: 1) */
|
|
11
|
+
opacity: number | Float32Array;
|
|
12
|
+
/** Color of particles (default: 100) */
|
|
13
|
+
color?: THREE.ColorRepresentation | Float32Array;
|
|
14
|
+
/** Size of particles (default: randomized between 0 and 1) */
|
|
15
|
+
size?: number | Float32Array;
|
|
16
|
+
/** The space the particles occupy (default: 1) */
|
|
17
|
+
scale: number | [number, number, number] | THREE.Vector3;
|
|
18
|
+
/** Movement factor (default: 1) */
|
|
19
|
+
noise: number | [number, number, number] | THREE.Vector3 | Float32Array;
|
|
20
|
+
}
|
|
21
|
+
export declare class NgtsSparkles extends NgtSignalStore<NgtsSparklesState> {
|
|
22
|
+
#private;
|
|
23
|
+
pointsRef: import("angular-three").NgtInjectedRef<THREE.Points<THREE.BufferGeometry, THREE.Material | THREE.Material[]>>;
|
|
9
24
|
/** Number of particles (default: 100) */
|
|
10
25
|
set count(count: number);
|
|
11
26
|
/** Speed of particles (default: 1) */
|
|
@@ -20,10 +35,15 @@ export declare class NgtsSparkles extends NgtRxStore {
|
|
|
20
35
|
set scale(scale: number | [number, number, number] | THREE.Vector3);
|
|
21
36
|
/** Movement factor (default: 1) */
|
|
22
37
|
set noise(noise: number | [number, number, number] | THREE.Vector3 | Float32Array);
|
|
23
|
-
|
|
38
|
+
readonly materialRef: import("angular-three").NgtInjectedRef<THREE.ShaderMaterial>;
|
|
39
|
+
readonly dpr: Signal<number>;
|
|
40
|
+
readonly positions: Signal<Float32Array>;
|
|
41
|
+
readonly sizes: Signal<Float32Array>;
|
|
42
|
+
readonly opacities: Signal<Float32Array>;
|
|
43
|
+
readonly speeds: Signal<Float32Array>;
|
|
44
|
+
readonly noises: Signal<Float32Array>;
|
|
45
|
+
readonly colors: Signal<Float32Array>;
|
|
24
46
|
constructor();
|
|
25
|
-
private onBeforeRender;
|
|
26
|
-
private getAttribute$;
|
|
27
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsSparkles, never>;
|
|
28
48
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsSparkles, "ngts-sparkles", never, { "pointsRef": { "alias": "pointsRef"; "required": false; }; "count": { "alias": "count"; "required": false; }; "speed": { "alias": "speed"; "required": false; }; "opacity": { "alias": "opacity"; "required": false; }; "color": { "alias": "color"; "required": false; }; "size": { "alias": "size"; "required": false; }; "scale": { "alias": "scale"; "required": false; }; "noise": { "alias": "noise"; "required": false; }; }, {}, never, never, true, never>;
|
|
29
49
|
}
|
|
@@ -1,6 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NgtSignalStore } from 'angular-three';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export
|
|
3
|
+
export interface NgtsSpotLightInputState {
|
|
4
|
+
depthBuffer?: THREE.DepthTexture;
|
|
5
|
+
angle: number;
|
|
6
|
+
distance: number;
|
|
7
|
+
attenuation: number;
|
|
8
|
+
anglePower: number;
|
|
9
|
+
radiusTop: number;
|
|
10
|
+
radiusBottom: number;
|
|
11
|
+
opacity: number;
|
|
12
|
+
color: string | number;
|
|
13
|
+
debug: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare abstract class NgtsSpotLightInput extends NgtSignalStore<NgtsSpotLightInputState> {
|
|
4
16
|
set depthBuffer(depthBuffer: THREE.DepthTexture);
|
|
5
17
|
set angle(angle: number);
|
|
6
18
|
set distance(distance: number);
|
|
@@ -11,6 +23,16 @@ export declare abstract class NgtsSpotLightInput extends NgtRxStore {
|
|
|
11
23
|
set opacity(opacity: number);
|
|
12
24
|
set color(color: string | number);
|
|
13
25
|
set debug(debug: boolean);
|
|
26
|
+
readonly lightDebug: import("@angular/core").Signal<boolean>;
|
|
27
|
+
readonly lightColor: import("@angular/core").Signal<string | number>;
|
|
28
|
+
readonly lightOpacity: import("@angular/core").Signal<number>;
|
|
29
|
+
readonly lightRadiusBottom: import("@angular/core").Signal<number>;
|
|
30
|
+
readonly lightRadiusTop: import("@angular/core").Signal<number>;
|
|
31
|
+
readonly lightAnglePower: import("@angular/core").Signal<number>;
|
|
32
|
+
readonly lightAttenuation: import("@angular/core").Signal<number>;
|
|
33
|
+
readonly lightDistance: import("@angular/core").Signal<number>;
|
|
34
|
+
readonly lightAngle: import("@angular/core").Signal<number>;
|
|
35
|
+
readonly lightDepthBuffer: import("@angular/core").Signal<import("three").DepthTexture | undefined>;
|
|
14
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsSpotLightInput, never>;
|
|
15
37
|
static ɵdir: i0.ɵɵDirectiveDeclaration<NgtsSpotLightInput, never, never, { "depthBuffer": { "alias": "depthBuffer"; "required": false; }; "angle": { "alias": "angle"; "required": false; }; "distance": { "alias": "distance"; "required": false; }; "attenuation": { "alias": "attenuation"; "required": false; }; "anglePower": { "alias": "anglePower"; "required": false; }; "radiusTop": { "alias": "radiusTop"; "required": false; }; "radiusBottom": { "alias": "radiusBottom"; "required": false; }; "opacity": { "alias": "opacity"; "required": false; }; "color": { "alias": "color"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; }, {}, never, never, false, never>;
|
|
16
38
|
}
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NgtSignalStore } from 'angular-three';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export
|
|
3
|
+
export interface NgtsSpotLightShadowMeshInputState {
|
|
4
|
+
distance: number;
|
|
5
|
+
alphaTest: number;
|
|
6
|
+
scale: number;
|
|
7
|
+
map: THREE.Texture;
|
|
8
|
+
shader: string;
|
|
9
|
+
width: number;
|
|
10
|
+
height: number;
|
|
11
|
+
}
|
|
12
|
+
export declare abstract class NgtsSpotLightShadowMeshInput extends NgtSignalStore<NgtsSpotLightShadowMeshInputState> {
|
|
4
13
|
set distance(distance: number);
|
|
5
14
|
set alphaTest(alphaTest: number);
|
|
6
15
|
set scale(scale: number);
|
|
@@ -8,7 +17,13 @@ export declare abstract class NgtsSpotLightShadowMeshInput extends NgtRxStore {
|
|
|
8
17
|
set shader(shader: string);
|
|
9
18
|
set width(width: number);
|
|
10
19
|
set height(height: number);
|
|
11
|
-
readonly
|
|
20
|
+
readonly shadowMeshDistance: import("@angular/core").Signal<number>;
|
|
21
|
+
readonly shadowMeshAlphaTest: import("@angular/core").Signal<number>;
|
|
22
|
+
readonly shadowMeshScale: import("@angular/core").Signal<number>;
|
|
23
|
+
readonly shadowMeshMap: import("@angular/core").Signal<import("three").Texture>;
|
|
24
|
+
readonly shadowMeshShader: import("@angular/core").Signal<string>;
|
|
25
|
+
readonly shadowMeshWidth: import("@angular/core").Signal<number>;
|
|
26
|
+
readonly shadowMeshHeight: import("@angular/core").Signal<number>;
|
|
12
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsSpotLightShadowMeshInput, never>;
|
|
13
28
|
static ɵdir: i0.ɵɵDirectiveDeclaration<NgtsSpotLightShadowMeshInput, never, never, { "distance": { "alias": "distance"; "required": false; }; "alphaTest": { "alias": "alphaTest"; "required": false; }; "scale": { "alias": "scale"; "required": false; }; "map": { "alias": "map"; "required": false; }; "shader": { "alias": "shader"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; }, {}, never, never, false, never>;
|
|
14
29
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { NgtInjectedRef } from 'angular-three';
|
|
2
|
+
import * as THREE from 'three';
|
|
3
|
+
import { NgtsSpotLightShadowMeshInput } from './spot-light-shadow-mesh-input';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class NgtsSpotLightShadowMeshNoShader {
|
|
6
|
+
#private;
|
|
7
|
+
protected readonly shadowMeshInput: NgtsSpotLightShadowMeshInput;
|
|
8
|
+
readonly meshRef: NgtInjectedRef<THREE.Mesh<THREE.BufferGeometry, THREE.Material | THREE.Material[]>>;
|
|
9
|
+
readonly DoubleSide: 2;
|
|
10
|
+
readonly debug: () => boolean;
|
|
11
|
+
constructor();
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsSpotLightShadowMeshNoShader, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsSpotLightShadowMeshNoShader, "ngts-spot-light-shadow-mesh-no-shader", never, {}, {}, never, ["*"], true, never>;
|
|
14
|
+
}
|
|
15
|
+
export declare class NgtsSpotLightShadowMeshShader {
|
|
16
|
+
#private;
|
|
17
|
+
protected readonly shadowMeshInput: NgtsSpotLightShadowMeshInput;
|
|
18
|
+
readonly meshRef: NgtInjectedRef<THREE.Mesh<THREE.BufferGeometry, THREE.Material | THREE.Material[]>>;
|
|
19
|
+
readonly DoubleSide: 2;
|
|
20
|
+
readonly RepeatWrapping: 1000;
|
|
21
|
+
readonly debug: () => boolean;
|
|
22
|
+
readonly renderTarget: import("@angular/core").Signal<THREE.WebGLRenderTarget>;
|
|
23
|
+
readonly uniforms: {
|
|
24
|
+
uShadowMap: {
|
|
25
|
+
value: THREE.Texture;
|
|
26
|
+
};
|
|
27
|
+
uTime: {
|
|
28
|
+
value: number;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
constructor();
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsSpotLightShadowMeshShader, never>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsSpotLightShadowMeshShader, "ngts-spot-light-shadow-mesh-shader", never, {}, {}, never, ["*"], true, never>;
|
|
34
|
+
}
|
|
35
|
+
export declare class NgtsSpotLightShadow extends NgtsSpotLightShadowMeshInput {
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsSpotLightShadow, never>;
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsSpotLightShadow, "ngts-spot-light-shadow", never, {}, {}, never, never, true, never>;
|
|
38
|
+
}
|
|
@@ -3,15 +3,21 @@ import { NgtInjectedRef } from 'angular-three';
|
|
|
3
3
|
import { SpotLight } from 'three';
|
|
4
4
|
import { NgtsSpotLightInput } from './spot-light-input';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
declare module './spot-light-input' {
|
|
7
|
+
interface NgtsSpotLightInputState {
|
|
8
|
+
volumetric: boolean;
|
|
9
|
+
}
|
|
9
10
|
}
|
|
10
|
-
export
|
|
11
|
+
export type NgtsSpotLightApi = {
|
|
12
|
+
spotLight: NgtInjectedRef<THREE.SpotLight>;
|
|
13
|
+
debug: () => boolean;
|
|
14
|
+
};
|
|
15
|
+
export declare const NGTS_SPOT_LIGHT_API: InjectionToken<NgtsSpotLightApi>;
|
|
11
16
|
export declare class NgtsSpotLight extends NgtsSpotLightInput {
|
|
12
17
|
spotLightRef: NgtInjectedRef<SpotLight>;
|
|
13
18
|
set volumetric(volumetric: boolean);
|
|
14
|
-
|
|
19
|
+
readonly showVolumetric: import("@angular/core").Signal<boolean>;
|
|
20
|
+
constructor();
|
|
15
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsSpotLight, never>;
|
|
16
22
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsSpotLight, "ngts-spot-light", never, { "spotLightRef": { "alias": "spotLightRef"; "required": false; }; "volumetric": { "alias": "volumetric"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
17
23
|
}
|
|
@@ -2,13 +2,16 @@ import { SpotLightMaterial } from 'angular-three-soba/shaders';
|
|
|
2
2
|
import * as THREE from 'three';
|
|
3
3
|
import { NgtsSpotLightInput } from './spot-light-input';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class NgtsVolumetricMesh
|
|
6
|
-
|
|
5
|
+
export declare class NgtsVolumetricMesh {
|
|
6
|
+
#private;
|
|
7
|
+
protected readonly spotLightInput: NgtsSpotLightInput;
|
|
8
|
+
readonly mesh: import("angular-three").NgtInjectedRef<THREE.Mesh<THREE.BufferGeometry, THREE.Material | THREE.Material[]>>;
|
|
7
9
|
readonly material: SpotLightMaterial;
|
|
8
10
|
readonly nullRaycast: () => null;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
readonly geometry: import("@angular/core").Signal<THREE.CylinderGeometry>;
|
|
12
|
+
readonly near: import("@angular/core").Signal<number>;
|
|
13
|
+
readonly far: import("@angular/core").Signal<number>;
|
|
14
|
+
readonly resolution: import("@angular/core").Signal<number[]>;
|
|
12
15
|
constructor();
|
|
13
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsVolumetricMesh, never>;
|
|
14
17
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsVolumetricMesh, "ngts-volumetric-mesh", never, {}, {}, never, never, true, never>;
|