angular-three-soba 1.14.0 → 2.0.0-beta.2
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 +19 -17
- 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
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import { Component, CUSTOM_ELEMENTS_SCHEMA, Input } from '@angular/core';
|
|
2
|
-
import { extend, injectBeforeRender, injectNgtRef, NgtArgs, NgtRxStore } from 'angular-three';
|
|
3
|
-
import { StarFieldMaterial } from 'angular-three-soba/shaders';
|
|
4
|
-
import * as THREE from 'three';
|
|
5
|
-
import { BufferAttribute, BufferGeometry, Color, Points, Spherical, Vector3 } from 'three';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
extend({ Points, BufferGeometry, BufferAttribute });
|
|
8
|
-
const genStar = (r) => {
|
|
9
|
-
return new Vector3().setFromSpherical(new Spherical(r, Math.acos(1 - Math.random() * 2), Math.random() * 2 * Math.PI));
|
|
10
|
-
};
|
|
11
|
-
class NgtsStars extends NgtRxStore {
|
|
12
|
-
set radius(radius) {
|
|
13
|
-
this.set({ radius });
|
|
14
|
-
}
|
|
15
|
-
set depth(depth) {
|
|
16
|
-
this.set({ depth });
|
|
17
|
-
}
|
|
18
|
-
set count(count) {
|
|
19
|
-
this.set({ count });
|
|
20
|
-
}
|
|
21
|
-
set factor(factor) {
|
|
22
|
-
this.set({ factor });
|
|
23
|
-
}
|
|
24
|
-
set saturation(saturation) {
|
|
25
|
-
this.set({ saturation });
|
|
26
|
-
}
|
|
27
|
-
set fade(fade) {
|
|
28
|
-
this.set({ fade });
|
|
29
|
-
}
|
|
30
|
-
set speed(speed) {
|
|
31
|
-
this.set({ speed });
|
|
32
|
-
}
|
|
33
|
-
initialize() {
|
|
34
|
-
super.initialize();
|
|
35
|
-
this.set({
|
|
36
|
-
radius: 100,
|
|
37
|
-
depth: 50,
|
|
38
|
-
count: 5000,
|
|
39
|
-
saturation: 0,
|
|
40
|
-
factor: 4,
|
|
41
|
-
fade: false,
|
|
42
|
-
speed: 1,
|
|
43
|
-
});
|
|
44
|
-
this.connect('bufferAttributes', this.select(['count', 'depth', 'factor', 'radius', 'saturation'], ({ count, depth, factor, radius, saturation }) => {
|
|
45
|
-
const positions = [];
|
|
46
|
-
const colors = [];
|
|
47
|
-
const sizes = Array.from({ length: count }, () => (0.5 + 0.5 * Math.random()) * factor);
|
|
48
|
-
const color = new Color();
|
|
49
|
-
let r = radius + depth;
|
|
50
|
-
const increment = depth / count;
|
|
51
|
-
for (let i = 0; i < count; i++) {
|
|
52
|
-
r -= increment * Math.random();
|
|
53
|
-
positions.push(...genStar(r).toArray());
|
|
54
|
-
color.setHSL(i / count, saturation, 0.9);
|
|
55
|
-
colors.push(color.r, color.g, color.b);
|
|
56
|
-
}
|
|
57
|
-
return {
|
|
58
|
-
positions: new Float32Array(positions),
|
|
59
|
-
colors: new Float32Array(colors),
|
|
60
|
-
sizes: new Float32Array(sizes),
|
|
61
|
-
};
|
|
62
|
-
}));
|
|
63
|
-
}
|
|
64
|
-
constructor() {
|
|
65
|
-
super();
|
|
66
|
-
this.AdditiveBlending = THREE.AdditiveBlending;
|
|
67
|
-
this.material = new StarFieldMaterial();
|
|
68
|
-
this.starsRef = injectNgtRef();
|
|
69
|
-
injectBeforeRender(this.onBeforeRender.bind(this));
|
|
70
|
-
}
|
|
71
|
-
onBeforeRender({ clock }) {
|
|
72
|
-
this.material.uniforms['time'].value = clock.getElapsedTime() * this.get('speed');
|
|
73
|
-
}
|
|
74
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgtsStars, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
75
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: NgtsStars, isStandalone: true, selector: "ngts-stars", inputs: { starsRef: "starsRef", radius: "radius", depth: "depth", count: "count", factor: "factor", saturation: "saturation", fade: "fade", speed: "speed" }, usesInheritance: true, ngImport: i0, template: `
|
|
76
|
-
<ngt-points [ref]="starsRef">
|
|
77
|
-
<ngt-buffer-geometry>
|
|
78
|
-
<ngt-buffer-attribute attach="attributes.position" *args="[get('bufferAttributes').positions, 3]" />
|
|
79
|
-
<ngt-buffer-attribute attach="attributes.color" *args="[get('bufferAttributes').colors, 3]" />
|
|
80
|
-
<ngt-buffer-attribute attach="attributes.size" *args="[get('bufferAttributes').sizes, 1]" />
|
|
81
|
-
</ngt-buffer-geometry>
|
|
82
|
-
<ngt-primitive
|
|
83
|
-
*args="[material]"
|
|
84
|
-
attach="material"
|
|
85
|
-
[blending]="AdditiveBlending"
|
|
86
|
-
[depthWrite]="false"
|
|
87
|
-
[transparent]="true"
|
|
88
|
-
[vertexColors]="true"
|
|
89
|
-
>
|
|
90
|
-
<ngt-value attach="uniforms.fade.value" [rawValue]="get('fade')" />
|
|
91
|
-
</ngt-primitive>
|
|
92
|
-
</ngt-points>
|
|
93
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: NgtArgs, selector: "[args]", inputs: ["args"] }] }); }
|
|
94
|
-
}
|
|
95
|
-
export { NgtsStars };
|
|
96
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgtsStars, decorators: [{
|
|
97
|
-
type: Component,
|
|
98
|
-
args: [{
|
|
99
|
-
selector: 'ngts-stars',
|
|
100
|
-
standalone: true,
|
|
101
|
-
template: `
|
|
102
|
-
<ngt-points [ref]="starsRef">
|
|
103
|
-
<ngt-buffer-geometry>
|
|
104
|
-
<ngt-buffer-attribute attach="attributes.position" *args="[get('bufferAttributes').positions, 3]" />
|
|
105
|
-
<ngt-buffer-attribute attach="attributes.color" *args="[get('bufferAttributes').colors, 3]" />
|
|
106
|
-
<ngt-buffer-attribute attach="attributes.size" *args="[get('bufferAttributes').sizes, 1]" />
|
|
107
|
-
</ngt-buffer-geometry>
|
|
108
|
-
<ngt-primitive
|
|
109
|
-
*args="[material]"
|
|
110
|
-
attach="material"
|
|
111
|
-
[blending]="AdditiveBlending"
|
|
112
|
-
[depthWrite]="false"
|
|
113
|
-
[transparent]="true"
|
|
114
|
-
[vertexColors]="true"
|
|
115
|
-
>
|
|
116
|
-
<ngt-value attach="uniforms.fade.value" [rawValue]="get('fade')" />
|
|
117
|
-
</ngt-primitive>
|
|
118
|
-
</ngt-points>
|
|
119
|
-
`,
|
|
120
|
-
imports: [NgtArgs],
|
|
121
|
-
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
122
|
-
}]
|
|
123
|
-
}], ctorParameters: function () { return []; }, propDecorators: { starsRef: [{
|
|
124
|
-
type: Input
|
|
125
|
-
}], radius: [{
|
|
126
|
-
type: Input
|
|
127
|
-
}], depth: [{
|
|
128
|
-
type: Input
|
|
129
|
-
}], count: [{
|
|
130
|
-
type: Input
|
|
131
|
-
}], factor: [{
|
|
132
|
-
type: Input
|
|
133
|
-
}], saturation: [{
|
|
134
|
-
type: Input
|
|
135
|
-
}], fade: [{
|
|
136
|
-
type: Input
|
|
137
|
-
}], speed: [{
|
|
138
|
-
type: Input
|
|
139
|
-
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gQElucHV0KCkgc2V0IGRlcHRoKGRlcHRoOiBudW1iZXIpIHtcbiAgICAgICAgdGhpcy5zZXQoeyBkZXB0aCB9KTtcbiAgICB9XG5cbiAgICBASW5wdXQoKSBzZXQgY291bnQoY291bnQ6IG51bWJlcikge1xuICAgICAgICB0aGlzLnNldCh7IGNvdW50IH0pO1xuICAgIH1cblxuICAgIEBJbnB1dCgpIHNldCBmYWN0b3IoZmFjdG9yOiBudW1iZXIpIHtcbiAgICAgICAgdGhpcy5zZXQoeyBmYWN0b3IgfSk7XG4gICAgfVxuXG4gICAgQElucHV0KCkgc2V0IHNhdHVyYXRpb24oc2F0dXJhdGlvbjogbnVtYmVyKSB7XG4gICAgICAgIHRoaXMuc2V0KHsgc2F0dXJhdGlvbiB9KTtcbiAgICB9XG5cbiAgICBASW5wdXQoKSBzZXQgZmFkZShmYWRlOiBib29sZWFuKSB7XG4gICAgICAgIHRoaXMuc2V0KHsgZmFkZSB9KTtcbiAgICB9XG5cbiAgICBASW5wdXQoKSBzZXQgc3BlZWQoc3BlZWQ6IG51bWJlcikge1xuICAgICAgICB0aGlzLnNldCh7IHNwZWVkIH0pO1xuICAgIH1cblxuICAgIG92ZXJyaWRlIGluaXRpYWxpemUoKTogdm9pZCB7XG4gICAgICAgIHN1cGVyLmluaXRpYWxpemUoKTtcbiAgICAgICAgdGhpcy5zZXQoe1xuICAgICAgICAgICAgcmFkaXVzOiAxMDAsXG4gICAgICAgICAgICBkZXB0aDogNTAsXG4gICAgICAgICAgICBjb3VudDogNTAwMCxcbiAgICAgICAgICAgIHNhdHVyYXRpb246IDAsXG4gICAgICAgICAgICBmYWN0b3I6IDQsXG4gICAgICAgICAgICBmYWRlOiBmYWxzZSxcbiAgICAgICAgICAgIHNwZWVkOiAxLFxuICAgICAgICB9KTtcbiAgICAgICAgdGhpcy5jb25uZWN0KFxuICAgICAgICAgICAgJ2J1ZmZlckF0dHJpYnV0ZXMnLFxuICAgICAgICAgICAgdGhpcy5zZWxlY3QoXG4gICAgICAgICAgICAgICAgWydjb3VudCcsICdkZXB0aCcsICdmYWN0b3InLCAncmFkaXVzJywgJ3NhdHVyYXRpb24nXSxcbiAgICAgICAgICAgICAgICAoeyBjb3VudCwgZGVwdGgsIGZhY3RvciwgcmFkaXVzLCBzYXR1cmF0aW9uIH0pID0+IHtcbiAgICAgICAgICAgICAgICAgICAgY29uc3QgcG9zaXRpb25zOiBhbnlbXSA9IFtdO1xuICAgICAgICAgICAgICAgICAgICBjb25zdCBjb2xvcnM6IGFueVtdID0gW107XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IHNpemVzID0gQXJyYXkuZnJvbSh7IGxlbmd0aDogY291bnQgfSwgKCkgPT4gKDAuNSArIDAuNSAqIE1hdGgucmFuZG9tKCkpICogZmFjdG9yKTtcbiAgICAgICAgICAgICAgICAgICAgY29uc3QgY29sb3IgPSBuZXcgQ29sb3IoKTtcbiAgICAgICAgICAgICAgICAgICAgbGV0IHIgPSByYWRpdXMgKyBkZXB0aDtcbiAgICAgICAgICAgICAgICAgICAgY29uc3QgaW5jcmVtZW50ID0gZGVwdGggLyBjb3VudDtcbiAgICAgICAgICAgICAgICAgICAgZm9yIChsZXQgaSA9IDA7IGkgPCBjb3VudDsgaSsrKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICByIC09IGluY3JlbWVudCAqIE1hdGgucmFuZG9tKCk7XG4gICAgICAgICAgICAgICAgICAgICAgICBwb3NpdGlvbnMucHVzaCguLi5nZW5TdGFyKHIpLnRvQXJyYXkoKSk7XG4gICAgICAgICAgICAgICAgICAgICAgICBjb2xvci5zZXRIU0woaSAvIGNvdW50LCBzYXR1cmF0aW9uLCAwLjkpO1xuICAgICAgICAgICAgICAgICAgICAgICAgY29sb3JzLnB1c2goY29sb3IuciwgY29sb3IuZywgY29sb3IuYik7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHBvc2l0aW9uczogbmV3IEZsb2F0MzJBcnJheShwb3NpdGlvbnMpLFxuICAgICAgICAgICAgICAgICAgICAgICAgY29sb3JzOiBuZXcgRmxvYXQzMkFycmF5KGNvbG9ycyksXG4gICAgICAgICAgICAgICAgICAgICAgICBzaXplczogbmV3IEZsb2F0MzJBcnJheShzaXplcyksXG4gICAgICAgICAgICAgICAgICAgIH07XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgKVxuICAgICAgICApO1xuICAgIH1cblxuICAgIGNvbnN0cnVjdG9yKCkge1xuICAgICAgICBzdXBlcigpO1xuICAgICAgICBpbmplY3RCZWZvcmVSZW5kZXIodGhpcy5vbkJlZm9yZVJlbmRlci5iaW5kKHRoaXMpKTtcbiAgICB9XG5cbiAgICBvbkJlZm9yZVJlbmRlcih7IGNsb2NrIH06IE5ndFJlbmRlclN0YXRlKSB7XG4gICAgICAgIHRoaXMubWF0ZXJpYWwudW5pZm9ybXNbJ3RpbWUnXS52YWx1ZSA9IGNsb2NrLmdldEVsYXBzZWRUaW1lKCkgKiB0aGlzLmdldCgnc3BlZWQnKTtcbiAgICB9XG59XG4iXX0=
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { NgtLoaderResults, NgtObjectMap } from 'angular-three';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { GLTF, GLTFLoader } from 'three-stdlib/loaders/GLTFLoader';
|
|
4
|
-
export interface NgtsGLTFLoader {
|
|
5
|
-
<TInput extends string | string[] | Record<string, string>>(path: TInput | Observable<TInput>, useDraco?: boolean | string, useMeshOpt?: boolean, extensions?: (loader: GLTFLoader) => void): Observable<NgtLoaderResults<TInput, GLTF & NgtObjectMap>>;
|
|
6
|
-
preload: <TInput extends string | string[] | Record<string, string>>(path: TInput | Observable<TInput>, useDraco?: boolean | string, useMeshOpt?: boolean, extensions?: (loader: GLTFLoader) => void) => void;
|
|
7
|
-
}
|
|
8
|
-
export declare const injectNgtsGLTFLoader: NgtsGLTFLoader;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { NgtRxStore } from 'angular-three';
|
|
2
|
-
export declare function injectNgtsProgress(): NgtRxStore<{
|
|
3
|
-
errors: string[];
|
|
4
|
-
active: boolean;
|
|
5
|
-
progress: number;
|
|
6
|
-
item: string;
|
|
7
|
-
loaded: number;
|
|
8
|
-
total: number;
|
|
9
|
-
}, {
|
|
10
|
-
errors: string[];
|
|
11
|
-
active: boolean;
|
|
12
|
-
progress: number;
|
|
13
|
-
item: string;
|
|
14
|
-
loaded: number;
|
|
15
|
-
total: number;
|
|
16
|
-
} & Record<string, any>>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { NgtLoaderResults } from 'angular-three';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import * as THREE from 'three';
|
|
4
|
-
export declare const IsObject: (url: any) => url is Record<string, string>;
|
|
5
|
-
export declare function injectNgtsTextureLoader<TInput extends string[] | string | Record<string, string>>(input: TInput | Observable<TInput>, onLoad?: (texture: THREE.Texture | THREE.Texture[]) => void): Observable<NgtLoaderResults<TInput, THREE.Texture>>;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { NgtRxStore } from 'angular-three';
|
|
2
|
-
import { MeshReflectorMaterial } from 'angular-three-soba/shaders';
|
|
3
|
-
import * as THREE from 'three';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class NgtsMeshReflectorMaterial extends NgtRxStore {
|
|
6
|
-
materialRef: import("angular-three").NgtInjectedRef<MeshReflectorMaterial>;
|
|
7
|
-
set resolution(resolution: number);
|
|
8
|
-
set mixBlur(mixBlur: number);
|
|
9
|
-
set mixStrength(mixStrength: number);
|
|
10
|
-
set blur(blur: [number, number] | number);
|
|
11
|
-
set mirror(mirror: number);
|
|
12
|
-
set minDepthThreshold(minDepthThreshold: number);
|
|
13
|
-
set maxDepthThreshold(maxDepthThreshold: number);
|
|
14
|
-
set depthScale(depthScale: number);
|
|
15
|
-
set depthToBlurRatioBias(depthToBlurRatioBias: number);
|
|
16
|
-
set distortionMap(distortionMap: THREE.Texture);
|
|
17
|
-
set distortion(distortion: number);
|
|
18
|
-
set mixContrast(mixContrast: number);
|
|
19
|
-
set reflectorOffset(reflectorOffset: number);
|
|
20
|
-
readonly defines$: import("rxjs").Observable<any>;
|
|
21
|
-
get reflectorProps(): any;
|
|
22
|
-
private readonly store;
|
|
23
|
-
private readonly reflectorPlane;
|
|
24
|
-
private readonly normal;
|
|
25
|
-
private readonly reflectorWorldPosition;
|
|
26
|
-
private readonly cameraWorldPosition;
|
|
27
|
-
private readonly rotationMatrix;
|
|
28
|
-
private readonly lookAtPosition;
|
|
29
|
-
private readonly clipPlane;
|
|
30
|
-
private readonly view;
|
|
31
|
-
private readonly target;
|
|
32
|
-
private readonly q;
|
|
33
|
-
private readonly textureMatrix;
|
|
34
|
-
private readonly virtualCamera;
|
|
35
|
-
initialize(): void;
|
|
36
|
-
constructor();
|
|
37
|
-
private beforeRender;
|
|
38
|
-
private onBeforeRender;
|
|
39
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsMeshReflectorMaterial, never>;
|
|
40
|
-
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>;
|
|
41
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { NgtRxStore } from 'angular-three';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class NgtsMeshRefractionMaterial extends NgtRxStore implements OnInit {
|
|
5
|
-
materialRef: import("angular-three").NgtInjectedRef<import("three").ShaderMaterial>;
|
|
6
|
-
/** Environment map */
|
|
7
|
-
set envMap(envMap: THREE.CubeTexture | THREE.Texture);
|
|
8
|
-
/** Number of ray-cast bounces, it can be expensive to have too many, 2 */
|
|
9
|
-
set bounces(bounces: number);
|
|
10
|
-
/** Refraction index, 2.4 */
|
|
11
|
-
set ior(ior: number);
|
|
12
|
-
/** Fresnel (strip light), 0 */
|
|
13
|
-
set fresnel(fresnel: number);
|
|
14
|
-
/** RGB shift intensity, can be expensive, 0 */
|
|
15
|
-
set aberrationStrength(aberrationStrength: number);
|
|
16
|
-
/** Color, white */
|
|
17
|
-
set color(color: THREE.ColorRepresentation);
|
|
18
|
-
/** If this is on it uses fewer ray casts for the RGB shift sacrificing physical accuracy, true */
|
|
19
|
-
set fastChroma(fastChroma: boolean);
|
|
20
|
-
readonly defines$: import("rxjs").Observable<any>;
|
|
21
|
-
private readonly store;
|
|
22
|
-
initialize(): void;
|
|
23
|
-
constructor();
|
|
24
|
-
ngOnInit(): void;
|
|
25
|
-
private setupGeometry;
|
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsMeshRefractionMaterial, never>;
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsMeshRefractionMaterial, "ngts-mesh-refraction-material", never, { "materialRef": { "alias": "materialRef"; "required": false; }; "envMap": { "alias": "envMap"; "required": false; }; "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>;
|
|
28
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { NgtInjectedRef } from 'angular-three';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import * as THREE from 'three';
|
|
4
|
-
import { AnimationClip } from 'three';
|
|
5
|
-
type Api = {
|
|
6
|
-
ref: NgtInjectedRef<THREE.Object3D>;
|
|
7
|
-
clips: THREE.AnimationClip[];
|
|
8
|
-
mixer: THREE.AnimationMixer;
|
|
9
|
-
names: string[];
|
|
10
|
-
actions: Record<string, THREE.AnimationAction>;
|
|
11
|
-
};
|
|
12
|
-
export declare function injectNgtsAnimations(animations$: Observable<AnimationClip[]>, ref?: NgtInjectedRef<THREE.Object3D> | THREE.Object3D): Api;
|
|
13
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import * as THREE from 'three';
|
|
3
|
-
export interface NgtsDepthBufferParams {
|
|
4
|
-
size: number;
|
|
5
|
-
frames: number;
|
|
6
|
-
}
|
|
7
|
-
export declare function injectNgtsDepthBuffer(paramsFactory?: (defaultParams: Partial<NgtsDepthBufferParams>) => NgtsDepthBufferParams | Observable<NgtsDepthBufferParams>): import("angular-three").NgtInjectedRef<THREE.DepthTexture>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { NgtBeforeRenderEvent, NgtRxStore } from 'angular-three';
|
|
3
|
-
import { LOD } from 'three';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class NgtsDetailed extends NgtRxStore implements OnInit {
|
|
6
|
-
lodRef: import("angular-three").NgtInjectedRef<LOD>;
|
|
7
|
-
set distances(distances: number[]);
|
|
8
|
-
ngOnInit(): void;
|
|
9
|
-
onLODBeforeRender({ object, state }: NgtBeforeRenderEvent<THREE.LOD>): void;
|
|
10
|
-
private updateLodChildren;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsDetailed, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsDetailed, "ngts-detailed[distances]", never, { "lodRef": { "alias": "lodRef"; "required": false; }; "distances": { "alias": "distances"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
13
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { NgtBeforeRenderEvent, NgtRxStore } from 'angular-three';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { ColorRepresentation, Group, Texture } from 'three';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class NgtsCloud extends NgtRxStore {
|
|
6
|
-
private readonly store;
|
|
7
|
-
readonly encoding: import("three").TextureEncoding;
|
|
8
|
-
groupRef: import("angular-three").NgtInjectedRef<Group>;
|
|
9
|
-
set opacity(opacity: number);
|
|
10
|
-
set speed(speed: number);
|
|
11
|
-
set width(width: number);
|
|
12
|
-
set depth(depth: number);
|
|
13
|
-
set segments(segments: number);
|
|
14
|
-
set texture(texture: string);
|
|
15
|
-
set color(color: ColorRepresentation);
|
|
16
|
-
set depthTest(depthTest: boolean);
|
|
17
|
-
readonly clouds$: Observable<any>;
|
|
18
|
-
readonly cloudTexture$: Observable<Texture>;
|
|
19
|
-
initialize(): void;
|
|
20
|
-
onBeforeRender({ state, object }: NgtBeforeRenderEvent<Group>): void;
|
|
21
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsCloud, never>;
|
|
22
|
-
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>;
|
|
23
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { NgtsEnvironmentInputs } from './environment-inputs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class NgtsEnvironmentCube extends NgtsEnvironmentInputs implements OnInit {
|
|
5
|
-
readonly textureRef: import("angular-three").NgtInjectedRef<import("three").Texture | import("three").CubeTexture>;
|
|
6
|
-
initialize(): void;
|
|
7
|
-
ngOnInit(): void;
|
|
8
|
-
private setEnvProps;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsEnvironmentCube, never>;
|
|
10
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgtsEnvironmentCube, "ngts-environment-cube", never, {}, {}, never, never, true, never>;
|
|
11
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { NgtsEnvironmentInputs } from './environment-inputs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class NgtsEnvironmentGround extends NgtsEnvironmentInputs implements OnInit {
|
|
5
|
-
readonly defaultTexture: import("angular-three").NgtInjectedRef<import("three").Texture | import("three").CubeTexture>;
|
|
6
|
-
ngOnInit(): void;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsEnvironmentGround, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsEnvironmentGround, "ngts-environment-ground", never, {}, {}, never, never, true, never>;
|
|
9
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
2
|
-
import { NgtRxStore, NgtStore } 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 declare abstract class NgtsEnvironmentInputs extends NgtRxStore {
|
|
7
|
-
protected readonly store: NgtStore;
|
|
8
|
-
set frames(frames: number);
|
|
9
|
-
set near(near: number);
|
|
10
|
-
set far(far: number);
|
|
11
|
-
set resolution(resolution: number);
|
|
12
|
-
set background(background: boolean | 'only');
|
|
13
|
-
set blur(blur: number);
|
|
14
|
-
set map(map: Texture);
|
|
15
|
-
set files(files: string | string[]);
|
|
16
|
-
set path(path: string);
|
|
17
|
-
set preset(preset: NgtsEnvironmentPresetsType);
|
|
18
|
-
set scene(scene: Scene | ElementRef<Scene>);
|
|
19
|
-
set extensions(extensions: (loader: Loader) => void);
|
|
20
|
-
set ground(ground: boolean | {
|
|
21
|
-
radius?: number;
|
|
22
|
-
height?: number;
|
|
23
|
-
scale?: number;
|
|
24
|
-
});
|
|
25
|
-
set encoding(encoding: TextureEncoding);
|
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsEnvironmentInputs, never>;
|
|
27
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgtsEnvironmentInputs, 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>;
|
|
28
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { NgtsEnvironmentInputs } from './environment-inputs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class NgtsEnvironmentMap extends NgtsEnvironmentInputs implements OnInit {
|
|
5
|
-
initialize(): void;
|
|
6
|
-
ngOnInit(): void;
|
|
7
|
-
private setEnvProps;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsEnvironmentMap, never>;
|
|
9
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgtsEnvironmentMap, "ngts-environment-map", never, {}, {}, never, never, true, never>;
|
|
10
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { CubeTexture, Texture } from 'three';
|
|
4
|
-
import { NgtsEnvironmentInputs } from './environment-inputs';
|
|
5
|
-
export declare function setEnvProps(background: boolean | 'only', scene: THREE.Scene | ElementRef<THREE.Scene> | undefined, defaultScene: THREE.Scene, texture: THREE.Texture, blur?: number): () => void;
|
|
6
|
-
type NgtsInjectEnvironmentParams = Partial<Pick<NgtsEnvironmentInputs, 'files' | 'path' | 'preset' | 'extensions' | 'encoding'>>;
|
|
7
|
-
export declare function injectNgtsEnvironment(paramsFactory: (defaultParams: NgtsInjectEnvironmentParams) => NgtsInjectEnvironmentParams | Observable<NgtsInjectEnvironmentParams>): import("angular-three").NgtInjectedRef<Texture | CubeTexture>;
|
|
8
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { NgtRxStore } from 'angular-three';
|
|
2
|
-
import * as THREE from 'three';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class NgtsFloat extends NgtRxStore {
|
|
5
|
-
private readonly offset;
|
|
6
|
-
floatRef: import("angular-three").NgtInjectedRef<THREE.Group>;
|
|
7
|
-
set speed(speed: number);
|
|
8
|
-
set rotationIntensity(rotationIntensity: number);
|
|
9
|
-
set floatIntensity(floatIntensity: number);
|
|
10
|
-
set floatingRange(floatingRange: [number?, number?]);
|
|
11
|
-
initialize(): void;
|
|
12
|
-
constructor();
|
|
13
|
-
private onBeforeRender;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsFloat, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsFloat, "ngts-float", never, { "floatRef": { "alias": "floatRef"; "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>;
|
|
16
|
-
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { NgtInjectedRef, NgtRxStore } from 'angular-three';
|
|
2
|
-
import * as THREE from 'three';
|
|
3
|
-
export declare function injectShadowMeshCommon(spotLight: NgtInjectedRef<THREE.SpotLight>, mesh: NgtInjectedRef<THREE.Mesh>, width: number, height: number, distance: number): (instance: NgtRxStore) => void;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import * as THREE from 'three';
|
|
3
|
-
import { NgtsSpotLightShadowMeshInput } from './shadow-mesh-input';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class NgtsSpotLightShadowNoShader extends NgtsSpotLightShadowMeshInput implements OnInit {
|
|
6
|
-
readonly mesh: import("angular-three").NgtInjectedRef<THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes>, THREE.Material | THREE.Material[]>>;
|
|
7
|
-
readonly spotLightApi: import("./spot-light").NgtsSpotLightAPI;
|
|
8
|
-
readonly DoubleSide: 2;
|
|
9
|
-
readonly runInContext: <TReturn>(cb: () => TReturn) => TReturn;
|
|
10
|
-
initialize(): void;
|
|
11
|
-
ngOnInit(): void;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsSpotLightShadowNoShader, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsSpotLightShadowNoShader, "ngts-spot-light-shadow-no-shader", never, {}, {}, never, ["*"], true, never>;
|
|
14
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import * as THREE from 'three';
|
|
3
|
-
import { NgtsSpotLightShadowMeshInput } from './shadow-mesh-input';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class NgtsSpotLightShadowShader extends NgtsSpotLightShadowMeshInput implements OnInit {
|
|
6
|
-
readonly mesh: import("angular-three").NgtInjectedRef<THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes>, THREE.Material | THREE.Material[]>>;
|
|
7
|
-
readonly spotLightApi: import("./spot-light").NgtsSpotLightAPI;
|
|
8
|
-
readonly DoubleSide: 2;
|
|
9
|
-
readonly RepeatWrapping: 1000;
|
|
10
|
-
readonly runInContext: <TReturn>(cb: () => TReturn) => TReturn;
|
|
11
|
-
readonly texture$: import("rxjs").Observable<any>;
|
|
12
|
-
initialize(): void;
|
|
13
|
-
readonly uniforms: {
|
|
14
|
-
uShadowMap: {
|
|
15
|
-
value: any;
|
|
16
|
-
};
|
|
17
|
-
uTime: {
|
|
18
|
-
value: number;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
constructor();
|
|
22
|
-
ngOnInit(): void;
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsSpotLightShadowShader, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsSpotLightShadowShader, "ngts-spot-light-shadow-shader", never, {}, {}, never, ["*"], true, never>;
|
|
25
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { NgtsSpotLightShadowMeshInput } from './shadow-mesh-input';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class NgtsSpotLightShadow extends NgtsSpotLightShadowMeshInput {
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsSpotLightShadow, never>;
|
|
5
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsSpotLightShadow, "ngts-spot-light-shadow", never, {}, {}, never, never, true, never>;
|
|
6
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/shaders/{lib/convolution-material → convolution-material}/convolution-material.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|