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,35 @@
|
|
|
1
|
+
import { ElementRef, InjectionToken, Signal } from '@angular/core';
|
|
2
|
+
import { NgtSignalStore } from 'angular-three';
|
|
3
|
+
import * as THREE from 'three';
|
|
4
|
+
import { InstancedMesh } from 'three';
|
|
5
|
+
import { PositionMesh } from './position-mesh';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export interface NgtsInstancesState {
|
|
8
|
+
range: number;
|
|
9
|
+
limit: number;
|
|
10
|
+
frames: number;
|
|
11
|
+
}
|
|
12
|
+
export interface NgtsInstancesApi {
|
|
13
|
+
getParent: () => ElementRef<InstancedMesh>;
|
|
14
|
+
subscribe: (ref: ElementRef<PositionMesh>) => () => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const NGTS_INSTANCES_API: InjectionToken<Signal<NgtsInstancesApi>>;
|
|
17
|
+
export declare class NgtsInstances extends NgtSignalStore<NgtsInstancesState> {
|
|
18
|
+
#private;
|
|
19
|
+
readonly nullRaycast: () => null;
|
|
20
|
+
readonly DynamicDrawUsage: 35048;
|
|
21
|
+
instancesRef: import("angular-three").NgtInjectedRef<THREE.InstancedMesh<THREE.BufferGeometry, THREE.Material | THREE.Material[]>>;
|
|
22
|
+
set range(range: number);
|
|
23
|
+
set limit(limit: number);
|
|
24
|
+
set frames(frames: number);
|
|
25
|
+
readonly matrices: Signal<Float32Array>;
|
|
26
|
+
readonly colors: Signal<Float32Array>;
|
|
27
|
+
readonly instances: import("@angular/core").WritableSignal<ElementRef<PositionMesh>[]>;
|
|
28
|
+
readonly api: Signal<{
|
|
29
|
+
getParent: () => import("angular-three").NgtInjectedRef<THREE.InstancedMesh<THREE.BufferGeometry, THREE.Material | THREE.Material[]>>;
|
|
30
|
+
subscribe: (ref: ElementRef<PositionMesh>) => () => void;
|
|
31
|
+
}>;
|
|
32
|
+
constructor();
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsInstances, never>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsInstances, "ngts-instances", never, { "instancesRef": { "alias": "instancesRef"; "required": false; }; "range": { "alias": "range"; "required": true; }; "limit": { "alias": "limit"; "required": false; }; "frames": { "alias": "frames"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import * as THREE from 'three';
|
|
3
|
+
export declare class PositionMesh extends THREE.Group {
|
|
4
|
+
color: THREE.Color;
|
|
5
|
+
instance: ElementRef<THREE.InstancedMesh | undefined>;
|
|
6
|
+
instanceKey: ElementRef<PositionMesh | undefined>;
|
|
7
|
+
constructor();
|
|
8
|
+
get geometry(): THREE.BufferGeometry | undefined;
|
|
9
|
+
raycast(raycaster: THREE.Raycaster, intersects: THREE.Intersection[]): void;
|
|
10
|
+
}
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
import { ElementRef
|
|
2
|
-
import {
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { NgtSignalStore } from 'angular-three';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
export interface NgtsStatsState {
|
|
5
|
+
showPanel: number;
|
|
6
|
+
right: boolean;
|
|
7
|
+
parent?: HTMLElement;
|
|
8
|
+
classes?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare class NgtsStats extends NgtSignalStore<NgtsStatsState> {
|
|
7
11
|
set showPanel(showPanel: number);
|
|
8
12
|
set parent(parent: HTMLElement | ElementRef<HTMLElement>);
|
|
9
13
|
set classes(classes: string);
|
|
10
14
|
set right(right: boolean);
|
|
11
|
-
|
|
12
|
-
ngOnInit(): void;
|
|
15
|
+
constructor();
|
|
13
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsStats, never>;
|
|
14
17
|
static ɵdir: i0.ɵɵDirectiveDeclaration<NgtsStats, "ngts-stats", never, { "showPanel": { "alias": "showPanel"; "required": false; }; "parent": { "alias": "parent"; "required": false; }; "classes": { "alias": "classes"; "required": false; }; "right": { "alias": "right"; "required": false; }; }, {}, never, never, true, never>;
|
|
15
18
|
}
|
package/plugin/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compat.js","sourceRoot":"","sources":["../../../../../../../libs/plugin/src/generators/init/compat.ts"],"names":[],"mappings":";;AAAA,uCAAgD;AAChD,iCAA0B;AAE1B,kBAAe,IAAA,2BAAkB,EAAC,cAAI,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"compat.js","sourceRoot":"","sources":["../../../../../../../libs/soba-plugin/src/generators/init/compat.ts"],"names":[],"mappings":";;AAAA,uCAAgD;AAChD,iCAA0B;AAE1B,kBAAe,IAAA,2BAAkB,EAAC,cAAI,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Tree } from '@nx/devkit';
|
|
2
|
-
export declare const ANGULAR_THREE_SOBA_VERSION = "^
|
|
2
|
+
export declare const ANGULAR_THREE_SOBA_VERSION = "^2.0.0";
|
|
3
3
|
export declare const THREE_STDLIB_VERSION = "^2.0.0";
|
|
4
4
|
export default function (tree: Tree): Promise<() => void>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.THREE_STDLIB_VERSION = exports.ANGULAR_THREE_SOBA_VERSION = void 0;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
|
-
exports.ANGULAR_THREE_SOBA_VERSION = '^
|
|
5
|
+
exports.ANGULAR_THREE_SOBA_VERSION = '^2.0.0';
|
|
6
6
|
exports.THREE_STDLIB_VERSION = '^2.0.0';
|
|
7
7
|
async function default_1(tree) {
|
|
8
8
|
devkit_1.logger.log('Initializing Angular Three...');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../../../../../../libs/plugin/src/generators/init/init.ts"],"names":[],"mappings":";;;AAAA,uCAAuG;AAE1F,QAAA,0BAA0B,GAAG,QAAQ,CAAC;AACtC,QAAA,oBAAoB,GAAG,QAAQ,CAAC;AAE9B,KAAK,oBAAW,IAAU;IACrC,eAAM,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAC;IAE5C,MAAM,WAAW,GAAG,IAAA,iBAAQ,EAAC,IAAI,EAAE,cAAc,CAAC,CAAC;IAEnD,MAAM,OAAO,GACT,WAAW,CAAC,cAAc,CAAC,EAAE,CAAC,oBAAoB,CAAC;QACnD,WAAW,CAAC,iBAAiB,CAAC,EAAE,CAAC,oBAAoB,CAAC;QACtD,kCAA0B,CAAC;IAE/B,IAAA,qCAA4B,EACxB,IAAI,EACJ;QACI,oBAAoB,EAAE,OAAO;QAC7B,cAAc,EAAE,4BAAoB;KACvC,EACD,EAAE,CACL,CAAC;IAEF,OAAO,GAAG,EAAE;QACR,IAAA,4BAAmB,EAAC,IAAI,CAAC,CAAC;IAC9B,CAAC,CAAC;AACN,CAAC;AAtBD,4BAsBC"}
|
|
1
|
+
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../../../../../../libs/soba-plugin/src/generators/init/init.ts"],"names":[],"mappings":";;;AAAA,uCAAuG;AAE1F,QAAA,0BAA0B,GAAG,QAAQ,CAAC;AACtC,QAAA,oBAAoB,GAAG,QAAQ,CAAC;AAE9B,KAAK,oBAAW,IAAU;IACrC,eAAM,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAC;IAE5C,MAAM,WAAW,GAAG,IAAA,iBAAQ,EAAC,IAAI,EAAE,cAAc,CAAC,CAAC;IAEnD,MAAM,OAAO,GACT,WAAW,CAAC,cAAc,CAAC,EAAE,CAAC,oBAAoB,CAAC;QACnD,WAAW,CAAC,iBAAiB,CAAC,EAAE,CAAC,oBAAoB,CAAC;QACtD,kCAA0B,CAAC;IAE/B,IAAA,qCAA4B,EACxB,IAAI,EACJ;QACI,oBAAoB,EAAE,OAAO;QAC7B,cAAc,EAAE,4BAAoB;KACvC,EACD,EAAE,CACL,CAAC;IAEF,OAAO,GAAG,EAAE;QACR,IAAA,4BAAmB,EAAC,IAAI,CAAC,CAAC;IAC9B,CAAC,CAAC;AACN,CAAC;AAtBD,4BAsBC"}
|
package/plugin/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/plugin/src/index.ts"],"names":[],"mappings":";;;AAAA,+CAAkE;AAAzD,qGAAA,OAAO,OAAiB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/soba-plugin/src/index.ts"],"names":[],"mappings":";;;AAAA,+CAAkE;AAAzD,qGAAA,OAAO,OAAiB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Camera, Mesh, Scene,
|
|
1
|
+
import { Camera, Mesh, Scene, WebGLRenderTarget, WebGLRenderer } from 'three';
|
|
2
2
|
import { ConvolutionMaterial } from '../convolution-material/convolution-material';
|
|
3
3
|
export interface BlurPassProps {
|
|
4
4
|
gl: WebGLRenderer;
|
|
@@ -19,5 +19,5 @@ export declare class BlurPass {
|
|
|
19
19
|
readonly screen: Mesh;
|
|
20
20
|
renderToScreen: boolean;
|
|
21
21
|
constructor({ gl, resolution, width, height, minDepthThreshold, maxDepthThreshold, depthScale, depthToBlurRatioBias, }: BlurPassProps);
|
|
22
|
-
render(renderer: WebGLRenderer, inputBuffer:
|
|
22
|
+
render(renderer: WebGLRenderer, inputBuffer: WebGLRenderTarget, outputBuffer: WebGLRenderTarget): void;
|
|
23
23
|
}
|
package/shaders/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
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 './
|
|
1
|
+
export * from './blur-pass/blur-pass';
|
|
2
|
+
export * from './caustics-material/caustics-material';
|
|
3
|
+
export * from './caustics-material/caustics-projection-material';
|
|
4
|
+
export * from './convolution-material/convolution-material';
|
|
5
|
+
export * from './discard-material/discard-material';
|
|
6
|
+
export * from './mesh-distort-material/mesh-distort-material';
|
|
7
|
+
export * from './mesh-reflector-material/mesh-reflector-material';
|
|
8
|
+
export * from './mesh-refraction-material/mesh-refraction-material';
|
|
9
|
+
export * from './mesh-transmission-material/mesh-transmission-material';
|
|
10
|
+
export * from './mesh-wobble-material/mesh-wobble-material';
|
|
11
|
+
export * from './soft-shadow-material/soft-shadow-material';
|
|
12
|
+
export * from './sparkles-material/sparkles-material';
|
|
13
|
+
export * from './spot-light-material/spot-light-material';
|
|
14
|
+
export * from './star-field-material/star-field-material';
|
package/shaders/{lib/mesh-distort-material → mesh-distort-material}/mesh-distort-material.d.ts
RENAMED
|
@@ -4,7 +4,7 @@ interface Uniform<T> {
|
|
|
4
4
|
value: T;
|
|
5
5
|
}
|
|
6
6
|
/**
|
|
7
|
-
* npm i -D raw-loader glslify-loader
|
|
7
|
+
* npm i -D raw-loader glslify-loader glsl-noise
|
|
8
8
|
* Usage: import distort from 'raw-loader!glslify-loader!angular-three-soba/assets/distort.vert.glsl'
|
|
9
9
|
*
|
|
10
10
|
* provideNgtsMeshDistortMaterialShader(distort)
|
|
@@ -2,9 +2,9 @@ import * as THREE from 'three';
|
|
|
2
2
|
export declare const SoftShadowMaterial: typeof THREE.ShaderMaterial & {
|
|
3
3
|
key: string;
|
|
4
4
|
};
|
|
5
|
-
export
|
|
5
|
+
export interface SoftShadowMaterialInputs {
|
|
6
6
|
map: THREE.Texture;
|
|
7
7
|
color?: THREE.ColorRepresentation;
|
|
8
8
|
alphaTest?: number;
|
|
9
9
|
blend?: number;
|
|
10
|
-
}
|
|
10
|
+
}
|
|
@@ -1,14 +1,38 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import {
|
|
1
|
+
import { InjectionToken, Signal } from '@angular/core';
|
|
2
|
+
import { NgtSignalStore, type NgtGroup } from 'angular-three';
|
|
3
3
|
import { SoftShadowMaterialInputs } from 'angular-three-soba/shaders';
|
|
4
|
-
import
|
|
4
|
+
import { Group, Mesh, PlaneGeometry } from 'three';
|
|
5
5
|
import { ProgressiveLightMap } from './progressive-light-map';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
+
export interface NgtsAccumulativeShadowsState {
|
|
8
|
+
/** How many frames it can render, more yields cleaner results but takes more time, 40 */
|
|
9
|
+
frames: number;
|
|
10
|
+
/** If frames === Infinity blend controls the refresh ratio, 100 */
|
|
11
|
+
blend: number;
|
|
12
|
+
/** Can limit the amount of frames rendered if frames === Infinity, usually to get some performance back once a movable scene has settled, Infinity */
|
|
13
|
+
limit: number;
|
|
14
|
+
/** Scale of the plane, */
|
|
15
|
+
scale: number;
|
|
16
|
+
/** Temporal accumulates shadows over time which is more performant but has a visual regression over instant results, false */
|
|
17
|
+
temporal: boolean;
|
|
18
|
+
/** Opacity of the plane, 1 */
|
|
19
|
+
opacity: number;
|
|
20
|
+
/** Discards alpha pixels, 0.65 */
|
|
21
|
+
alphaTest: number;
|
|
22
|
+
/** Shadow color, black */
|
|
23
|
+
color: string;
|
|
24
|
+
/** Colorblend, how much colors turn to black, 0 is black, 2 */
|
|
25
|
+
colorBlend: number;
|
|
26
|
+
/** Buffer resolution, 1024 */
|
|
27
|
+
resolution: number;
|
|
28
|
+
/** Texture tonemapping */
|
|
29
|
+
toneMapped: boolean;
|
|
30
|
+
}
|
|
7
31
|
export type NgtsAccumulativeShadowsLightApi = {
|
|
8
32
|
update: () => void;
|
|
9
33
|
};
|
|
10
|
-
export
|
|
11
|
-
lights: Map<string, NgtsAccumulativeShadowsLightApi
|
|
34
|
+
export interface NgtsAccumulativeShadowsApi {
|
|
35
|
+
lights: Map<string, Signal<NgtsAccumulativeShadowsLightApi>>;
|
|
12
36
|
temporal: boolean;
|
|
13
37
|
frames: number;
|
|
14
38
|
blend: number;
|
|
@@ -16,20 +40,17 @@ export type NgtsAccumulativeShadowsApi = {
|
|
|
16
40
|
getMesh: () => THREE.Mesh<THREE.PlaneGeometry, SoftShadowMaterialInputs & THREE.ShaderMaterial>;
|
|
17
41
|
reset: () => void;
|
|
18
42
|
update: (frames?: number) => void;
|
|
19
|
-
};
|
|
20
|
-
export declare const NGTS_ACCUMULATIVE_SHADOWS_API: InjectionToken<NgtsAccumulativeShadowsApi>;
|
|
21
|
-
export declare class AccumulativeShadowsConsumer {
|
|
22
|
-
constructor();
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AccumulativeShadowsConsumer, never>;
|
|
24
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AccumulativeShadowsConsumer, "[ngtsAccumulativeShadowsConsumer]", never, {}, {}, never, never, true, never>;
|
|
25
43
|
}
|
|
26
|
-
export declare
|
|
44
|
+
export declare const NGTS_ACCUMULATIVE_SHADOWS_API: InjectionToken<Signal<NgtsAccumulativeShadowsApi>>;
|
|
45
|
+
declare global {
|
|
46
|
+
interface HTMLElementTagNameMap {
|
|
47
|
+
'ngts-accumulative-shadows': NgtGroup & NgtsAccumulativeShadowsState;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
export declare class NgtsAccumulativeShadows extends NgtSignalStore<NgtsAccumulativeShadowsState> {
|
|
51
|
+
#private;
|
|
27
52
|
readonly nullTraverse: () => null;
|
|
28
53
|
readonly Math: Math;
|
|
29
|
-
private readonly store;
|
|
30
|
-
readonly pLM: ProgressiveLightMap;
|
|
31
|
-
readonly accumulativeShadowsRef: import("angular-three").NgtInjectedRef<THREE.Group>;
|
|
32
|
-
readonly meshRef: import("angular-three").NgtInjectedRef<THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes>, THREE.Material | THREE.Material[]>>;
|
|
33
54
|
/** How many frames it can render, more yields cleaner results but takes more time, 40 */
|
|
34
55
|
set frames(frames: number);
|
|
35
56
|
/** If frames === Infinity blend controls the refresh ratio, 100 */
|
|
@@ -52,7 +73,24 @@ export declare class NgtsAccumulativeShadows extends NgtRxStore {
|
|
|
52
73
|
set resolution(resolution: number);
|
|
53
74
|
/** Texture tonemapping */
|
|
54
75
|
set toneMapped(toneMapped: boolean);
|
|
55
|
-
|
|
76
|
+
readonly accumulativeShadowsScale: Signal<number>;
|
|
77
|
+
readonly accumulativeShadowsToneMapped: Signal<boolean>;
|
|
78
|
+
readonly accumulativeShadowsColor: Signal<string>;
|
|
79
|
+
readonly accumulativeShadowsColorBlend: Signal<number>;
|
|
80
|
+
readonly meshRef: import("angular-three").NgtInjectedRef<Mesh<PlaneGeometry, SoftShadowMaterialInputs & import("three").ShaderMaterial>>;
|
|
81
|
+
readonly accumulativeShadowsRef: import("angular-three").NgtInjectedRef<Group>;
|
|
82
|
+
readonly pLM: Signal<ProgressiveLightMap>;
|
|
83
|
+
readonly api: Signal<{
|
|
84
|
+
lights: Map<any, any>;
|
|
85
|
+
temporal: boolean;
|
|
86
|
+
frames: number;
|
|
87
|
+
blend: number;
|
|
88
|
+
count: number;
|
|
89
|
+
getMesh: () => Mesh<PlaneGeometry, SoftShadowMaterialInputs & import("three").ShaderMaterial>;
|
|
90
|
+
reset: () => void;
|
|
91
|
+
update: (frames?: number) => void;
|
|
92
|
+
}>;
|
|
93
|
+
constructor();
|
|
56
94
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsAccumulativeShadows, never>;
|
|
57
95
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsAccumulativeShadows, "ngts-accumulative-shadows", never, { "frames": { "alias": "frames"; "required": false; }; "blend": { "alias": "blend"; "required": false; }; "limit": { "alias": "limit"; "required": false; }; "scale": { "alias": "scale"; "required": false; }; "temporal": { "alias": "temporal"; "required": false; }; "opacity": { "alias": "opacity"; "required": false; }; "alphaTest": { "alias": "alphaTest"; "required": false; }; "color": { "alias": "color"; "required": false; }; "colorBlend": { "alias": "colorBlend"; "required": false; }; "resolution": { "alias": "resolution"; "required": false; }; "toneMapped": { "alias": "toneMapped"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
58
96
|
}
|
package/staging/{lib/accumulative-shadows → accumulative-shadows}/progressive-light-map.d.ts
RENAMED
|
@@ -29,6 +29,6 @@ export declare class ProgressiveLightMap {
|
|
|
29
29
|
clear(): void;
|
|
30
30
|
prepare(): void;
|
|
31
31
|
finish(): void;
|
|
32
|
-
configure(object:
|
|
33
|
-
update(camera:
|
|
32
|
+
configure(object: THREE.Mesh): void;
|
|
33
|
+
update(camera: THREE.Camera, blendWindow?: number): void;
|
|
34
34
|
}
|
|
@@ -1,15 +1,40 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { NgtRxStore } from 'angular-three';
|
|
1
|
+
import { NgtSignalStore, type NgtGroup } from 'angular-three';
|
|
3
2
|
import * as THREE from 'three';
|
|
4
|
-
import { NgtsAccumulativeShadowsLightApi } from './accumulative-shadows';
|
|
5
3
|
import * as i0 from "@angular/core";
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
export interface NgtsRandomizedLightsState {
|
|
5
|
+
/** How many frames it will jiggle the lights, 1.
|
|
6
|
+
* Frames is context aware, if a provider like AccumulativeShadows exists, frames will be taken from there! */
|
|
7
|
+
frames: number;
|
|
8
|
+
/** Light position, [0, 0, 0] */
|
|
9
|
+
position: [x: number, y: number, z: number];
|
|
10
|
+
/** Radius of the jiggle, higher values make softer light, 5 */
|
|
11
|
+
radius: number;
|
|
12
|
+
/** Amount of lights, 8 */
|
|
13
|
+
amount: number;
|
|
14
|
+
/** Light intensity, 1 */
|
|
15
|
+
intensity: number;
|
|
16
|
+
/** Ambient occlusion, lower values mean less AO, hight more, you can mix AO and directional light, 0.5 */
|
|
17
|
+
ambient: number;
|
|
18
|
+
/** If the lights cast shadows, this is true by default */
|
|
19
|
+
castShadow: boolean;
|
|
20
|
+
/** Default shadow bias, 0 */
|
|
21
|
+
bias: number;
|
|
22
|
+
/** Default map size, 512 */
|
|
23
|
+
mapSize: number;
|
|
24
|
+
/** Default size of the shadow camera, 10 */
|
|
25
|
+
size: number;
|
|
26
|
+
/** Default shadow camera near, 0.5 */
|
|
27
|
+
near: number;
|
|
28
|
+
/** Default shadow camera far, 500 */
|
|
29
|
+
far: number;
|
|
11
30
|
}
|
|
12
|
-
|
|
31
|
+
declare global {
|
|
32
|
+
interface HTMLElementTagNameMap {
|
|
33
|
+
'ngts-randomized-lights': NgtGroup & NgtsRandomizedLightsState;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
export declare class NgtsRandomizedLights extends NgtSignalStore<NgtsRandomizedLightsState> {
|
|
37
|
+
#private;
|
|
13
38
|
lightsRef: import("angular-three").NgtInjectedRef<THREE.Group>;
|
|
14
39
|
/** How many frames it will jiggle the lights, 1.
|
|
15
40
|
* Frames is context aware, if a provider like AccumulativeShadows exists, frames will be taken from there! */
|
|
@@ -36,7 +61,17 @@ export declare class NgtsRandomizedLights extends NgtRxStore {
|
|
|
36
61
|
set near(near: number);
|
|
37
62
|
/** Default shadow camera far, 500 */
|
|
38
63
|
set far(far: number);
|
|
39
|
-
|
|
64
|
+
readonly lightsAmount: import("@angular/core").Signal<number>;
|
|
65
|
+
readonly lightsCastShadow: import("@angular/core").Signal<boolean>;
|
|
66
|
+
readonly lightsIntensity: import("@angular/core").Signal<number>;
|
|
67
|
+
readonly lightsBias: import("@angular/core").Signal<number>;
|
|
68
|
+
readonly shadowMapSize: import("@angular/core").Signal<number[]>;
|
|
69
|
+
readonly cameraArgs: import("@angular/core").Signal<number[]>;
|
|
70
|
+
readonly length: import("@angular/core").Signal<number>;
|
|
71
|
+
readonly api: import("@angular/core").Signal<{
|
|
72
|
+
update: () => void;
|
|
73
|
+
}>;
|
|
74
|
+
constructor();
|
|
40
75
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsRandomizedLights, never>;
|
|
41
76
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsRandomizedLights, "ngts-randomized-lights", never, { "lightsRef": { "alias": "lightsRef"; "required": false; }; "frames": { "alias": "frames"; "required": false; }; "position": { "alias": "position"; "required": false; }; "radius": { "alias": "radius"; "required": false; }; "amount": { "alias": "amount"; "required": false; }; "intensity": { "alias": "intensity"; "required": false; }; "ambient": { "alias": "ambient"; "required": false; }; "castShadow": { "alias": "castShadow"; "required": false; }; "bias": { "alias": "bias"; "required": false; }; "mapSize": { "alias": "mapSize"; "required": false; }; "size": { "alias": "size"; "required": false; }; "near": { "alias": "near"; "required": false; }; "far": { "alias": "far"; "required": false; }; }, {}, never, never, true, never>;
|
|
42
77
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { EventEmitter, InjectionToken,
|
|
2
|
-
import {
|
|
1
|
+
import { EventEmitter, InjectionToken, Signal } from '@angular/core';
|
|
2
|
+
import { NgtSignalStore } from 'angular-three';
|
|
3
3
|
import * as THREE from 'three';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export
|
|
5
|
+
export type NgtsBoundsSize = {
|
|
6
6
|
box: THREE.Box3;
|
|
7
7
|
size: THREE.Vector3;
|
|
8
8
|
center: THREE.Vector3;
|
|
9
9
|
distance: number;
|
|
10
|
-
}
|
|
11
|
-
export
|
|
10
|
+
};
|
|
11
|
+
export type NgtsBoundsApi = {
|
|
12
12
|
getSize: () => NgtsBoundsSize;
|
|
13
13
|
refresh: (object?: THREE.Object3D | THREE.Box3) => NgtsBoundsApi;
|
|
14
14
|
clip: () => NgtsBoundsApi;
|
|
@@ -17,9 +17,18 @@ export interface NgtsBoundsApi {
|
|
|
17
17
|
position: [number, number, number];
|
|
18
18
|
target?: [number, number, number];
|
|
19
19
|
}) => NgtsBoundsApi;
|
|
20
|
+
};
|
|
21
|
+
export declare const NGTS_BOUNDS_API: InjectionToken<Signal<NgtsBoundsApi>>;
|
|
22
|
+
export interface NgtsBoundsState {
|
|
23
|
+
damping: number;
|
|
24
|
+
fit: boolean;
|
|
25
|
+
clip: boolean;
|
|
26
|
+
observe: boolean;
|
|
27
|
+
margin: number;
|
|
28
|
+
eps: number;
|
|
20
29
|
}
|
|
21
|
-
export declare
|
|
22
|
-
|
|
30
|
+
export declare class NgtsBounds extends NgtSignalStore<NgtsBoundsState> {
|
|
31
|
+
#private;
|
|
23
32
|
boundsRef: import("angular-three").NgtInjectedRef<THREE.Group>;
|
|
24
33
|
set damping(damping: number);
|
|
25
34
|
set fit(fit: boolean);
|
|
@@ -28,21 +37,22 @@ export declare class NgtsBounds extends NgtRxStore implements OnInit {
|
|
|
28
37
|
set margin(margin: number);
|
|
29
38
|
set eps(eps: number);
|
|
30
39
|
fitted: EventEmitter<NgtsBoundsSize>;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
40
|
+
readonly api: Signal<{
|
|
41
|
+
getSize: () => {
|
|
42
|
+
box: THREE.Box3;
|
|
43
|
+
size: THREE.Vector3;
|
|
44
|
+
center: THREE.Vector3;
|
|
45
|
+
distance: number;
|
|
46
|
+
};
|
|
47
|
+
refresh(object?: THREE.Object3D | THREE.Box3): any;
|
|
48
|
+
clip(): any;
|
|
49
|
+
to({ position, target }: {
|
|
50
|
+
position: [number, number, number];
|
|
51
|
+
target?: [number, number, number] | undefined;
|
|
52
|
+
}): any;
|
|
53
|
+
fit(): any;
|
|
54
|
+
}>;
|
|
55
|
+
constructor();
|
|
46
56
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsBounds, never>;
|
|
47
57
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsBounds, "ngts-bounds", never, { "boundsRef": { "alias": "boundsRef"; "required": false; }; "damping": { "alias": "damping"; "required": false; }; "fit": { "alias": "fit"; "required": false; }; "clip": { "alias": "clip"; "required": false; }; "observe": { "alias": "observe"; "required": false; }; "margin": { "alias": "margin"; "required": false; }; "eps": { "alias": "eps"; "required": false; }; }, { "fitted": "fitted"; }, never, ["*"], true, never>;
|
|
48
58
|
}
|
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { NgtSignalStore } from 'angular-three';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
export interface NgtsCameraShakeState {
|
|
5
|
+
intensity: number;
|
|
6
|
+
decay: boolean;
|
|
7
|
+
decayRate: number;
|
|
8
|
+
maxYaw: number;
|
|
9
|
+
maxPitch: number;
|
|
10
|
+
maxRoll: number;
|
|
11
|
+
yawFrequency: number;
|
|
12
|
+
pitchFrequency: number;
|
|
13
|
+
rollFrequency: number;
|
|
14
|
+
}
|
|
15
|
+
export declare class NgtsCameraShake extends NgtSignalStore<NgtsCameraShakeState> implements OnInit {
|
|
16
|
+
#private;
|
|
10
17
|
set intensity(intensity: number);
|
|
11
18
|
set decay(decay: boolean);
|
|
12
19
|
set decayRate(decayRate: number);
|
|
@@ -16,13 +23,10 @@ export declare class NgtsCameraShake extends NgtRxStore implements OnInit {
|
|
|
16
23
|
set yawFrequency(yawFrequency: number);
|
|
17
24
|
set pitchFrequency(pitchFrequency: number);
|
|
18
25
|
set rollFrequency(rollFrequency: number);
|
|
19
|
-
initialize(): void;
|
|
20
26
|
constructor();
|
|
21
27
|
ngOnInit(): void;
|
|
22
|
-
|
|
23
|
-
getIntensity(): any;
|
|
28
|
+
getIntensity(): number;
|
|
24
29
|
setIntensity(intensity: number): void;
|
|
25
|
-
private constraintIntensity;
|
|
26
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsCameraShake, never>;
|
|
27
31
|
static ɵdir: i0.ɵɵDirectiveDeclaration<NgtsCameraShake, "ngts-camera-shake", never, { "intensity": { "alias": "intensity"; "required": false; }; "decay": { "alias": "decay"; "required": false; }; "decayRate": { "alias": "decayRate"; "required": false; }; "maxYaw": { "alias": "maxYaw"; "required": false; }; "maxPitch": { "alias": "maxPitch"; "required": false; }; "maxRoll": { "alias": "maxRoll"; "required": false; }; "yawFrequency": { "alias": "yawFrequency"; "required": false; }; "pitchFrequency": { "alias": "pitchFrequency"; "required": false; }; "rollFrequency": { "alias": "rollFrequency"; "required": false; }; }, {}, never, never, true, never>;
|
|
28
32
|
}
|
|
@@ -1,13 +1,38 @@
|
|
|
1
|
-
import { ElementRef
|
|
2
|
-
import {
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { NgtSignalStore } from 'angular-three';
|
|
3
3
|
import * as THREE from 'three';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export
|
|
5
|
+
export interface NgtsCausticsState {
|
|
6
|
+
/** How many frames it will render, set it to Infinity for runtime, default: 1 */
|
|
7
|
+
frames: number;
|
|
8
|
+
/** Enables visual cues to help you stage your scene, default: false */
|
|
9
|
+
debug: boolean;
|
|
10
|
+
/** Will display caustics only and skip the models, default: false */
|
|
11
|
+
causticsOnly: boolean;
|
|
12
|
+
/** Will include back faces and enable the backsideIOR prop, default: false */
|
|
13
|
+
backside: boolean;
|
|
14
|
+
/** The IOR refraction index, default: 1.1 */
|
|
15
|
+
ior: number;
|
|
16
|
+
/** The IOR refraction index for back faces (only available when backside is enabled), default: 1.1 */
|
|
17
|
+
backsideIOR: number;
|
|
18
|
+
/** The texel size, default: 0.3125 */
|
|
19
|
+
worldRadius: number;
|
|
20
|
+
/** Intensity of the prjected caustics, default: 0.05 */
|
|
21
|
+
intensity: number;
|
|
22
|
+
/** Caustics color, default: white */
|
|
23
|
+
color: THREE.ColorRepresentation;
|
|
24
|
+
/** Buffer resolution, default: 2048 */
|
|
25
|
+
resolution: number;
|
|
26
|
+
/** Camera position, it will point towards the contents bounds center, default: [5, 5, 5] */
|
|
27
|
+
lightSource: [x: number, y: number, z: number] | ElementRef<THREE.Object3D>;
|
|
28
|
+
}
|
|
29
|
+
export declare class NgtsCaustics extends NgtSignalStore<NgtsCausticsState> {
|
|
30
|
+
#private;
|
|
6
31
|
readonly CustomBlending: 5;
|
|
7
32
|
readonly OneFactor: 201;
|
|
8
33
|
readonly SrcAlphaFactor: 204;
|
|
9
34
|
readonly Math: Math;
|
|
10
|
-
readonly planeRef: import("angular-three").NgtInjectedRef<THREE.Mesh<THREE.BufferGeometry
|
|
35
|
+
readonly planeRef: import("angular-three").NgtInjectedRef<THREE.Mesh<THREE.BufferGeometry, THREE.Material | THREE.Material[]>>;
|
|
11
36
|
readonly sceneRef: import("angular-three").NgtInjectedRef<THREE.Scene>;
|
|
12
37
|
readonly cameraRef: import("angular-three").NgtInjectedRef<THREE.OrthographicCamera>;
|
|
13
38
|
causticsRef: import("angular-three").NgtInjectedRef<THREE.Group>;
|
|
@@ -33,15 +58,13 @@ export declare class NgtsCaustics extends NgtRxStore implements OnInit {
|
|
|
33
58
|
set resolution(resolution: number);
|
|
34
59
|
/** Camera position, it will point towards the contents bounds center, default: [5, 5, 5] */
|
|
35
60
|
set lightSource(lightSource: [x: number, y: number, z: number] | ElementRef<THREE.Object3D>);
|
|
36
|
-
readonly
|
|
37
|
-
readonly
|
|
38
|
-
readonly
|
|
39
|
-
readonly
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
private updateWorldMatrix;
|
|
44
|
-
private setBeforeRender;
|
|
61
|
+
readonly causticsColor: import("@angular/core").Signal<THREE.ColorRepresentation>;
|
|
62
|
+
readonly causticsDebug: import("@angular/core").Signal<boolean>;
|
|
63
|
+
readonly normalTargetFbo: import("@angular/core").Signal<THREE.WebGLRenderTarget>;
|
|
64
|
+
readonly normalTargetBFbo: import("@angular/core").Signal<THREE.WebGLRenderTarget>;
|
|
65
|
+
readonly causticsTargetFbo: import("@angular/core").Signal<THREE.WebGLRenderTarget>;
|
|
66
|
+
readonly causticsTargetBFbo: import("@angular/core").Signal<THREE.WebGLRenderTarget>;
|
|
67
|
+
constructor();
|
|
45
68
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsCaustics, never>;
|
|
46
69
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsCaustics, "ngts-caustics", never, { "causticsRef": { "alias": "causticsRef"; "required": false; }; "frames": { "alias": "frames"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; "causticsOnly": { "alias": "causticsOnly"; "required": false; }; "backside": { "alias": "backside"; "required": false; }; "ior": { "alias": "ior"; "required": false; }; "backsideIOR": { "alias": "backsideIOR"; "required": false; }; "worldRadius": { "alias": "worldRadius"; "required": false; }; "intensity": { "alias": "intensity"; "required": false; }; "color": { "alias": "color"; "required": false; }; "resolution": { "alias": "resolution"; "required": false; }; "lightSource": { "alias": "lightSource"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
47
70
|
}
|
|
@@ -1,8 +1,32 @@
|
|
|
1
|
-
import { EventEmitter
|
|
2
|
-
import {
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { NgtSignalStore, type NgtGroup } from 'angular-three';
|
|
3
3
|
import { Box3, Group, Sphere, Vector3 } from 'three';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export
|
|
5
|
+
export type NgtsCenterState = {
|
|
6
|
+
top?: boolean;
|
|
7
|
+
right?: boolean;
|
|
8
|
+
bottom?: boolean;
|
|
9
|
+
left?: boolean;
|
|
10
|
+
front?: boolean;
|
|
11
|
+
back?: boolean;
|
|
12
|
+
/** Disable all axes */
|
|
13
|
+
disable?: boolean;
|
|
14
|
+
/** Disable x-axis centering */
|
|
15
|
+
disableX?: boolean;
|
|
16
|
+
/** Disable y-axis centering */
|
|
17
|
+
disableY?: boolean;
|
|
18
|
+
/** Disable z-axis centering */
|
|
19
|
+
disableZ?: boolean;
|
|
20
|
+
/** See https://threejs.org/docs/index.html?q=box3#api/en/math/Box3.setFromObject */
|
|
21
|
+
precise: boolean;
|
|
22
|
+
};
|
|
23
|
+
declare global {
|
|
24
|
+
interface HTMLElementTagNameMap {
|
|
25
|
+
'ngts-center': NgtsCenterState & NgtGroup;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
export declare class NgtsCenter extends NgtSignalStore<NgtsCenterState> {
|
|
29
|
+
#private;
|
|
6
30
|
centerRef: import("angular-three").NgtInjectedRef<Group>;
|
|
7
31
|
readonly outerRef: import("angular-three").NgtInjectedRef<Group>;
|
|
8
32
|
readonly innerRef: import("angular-three").NgtInjectedRef<Group>;
|
|
@@ -15,7 +39,7 @@ export declare class NgtsCenter extends NgtRxStore implements OnInit {
|
|
|
15
39
|
set disableX(disableX: boolean);
|
|
16
40
|
set disableY(disableY: boolean);
|
|
17
41
|
set disableZ(disableZ: boolean);
|
|
18
|
-
set
|
|
42
|
+
set disable(disable: boolean);
|
|
19
43
|
set precise(precise: boolean);
|
|
20
44
|
centered: EventEmitter<{
|
|
21
45
|
/** The next parent above <Center> */
|
|
@@ -32,9 +56,7 @@ export declare class NgtsCenter extends NgtRxStore implements OnInit {
|
|
|
32
56
|
horizontalAlignment: number;
|
|
33
57
|
depthAlignment: number;
|
|
34
58
|
}>;
|
|
35
|
-
|
|
36
|
-
ngOnInit(): void;
|
|
37
|
-
private setPosition;
|
|
59
|
+
constructor();
|
|
38
60
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtsCenter, never>;
|
|
39
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsCenter, "ngts-center", never, { "centerRef": { "alias": "centerRef"; "required": false; }; "top": { "alias": "top"; "required": false; }; "right": { "alias": "right"; "required": false; }; "bottom": { "alias": "bottom"; "required": false; }; "left": { "alias": "left"; "required": false; }; "front": { "alias": "front"; "required": false; }; "back": { "alias": "back"; "required": false; }; "disableX": { "alias": "disableX"; "required": false; }; "disableY": { "alias": "disableY"; "required": false; }; "disableZ": { "alias": "disableZ"; "required": false; }; "
|
|
61
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgtsCenter, "ngts-center", never, { "centerRef": { "alias": "centerRef"; "required": false; }; "top": { "alias": "top"; "required": false; }; "right": { "alias": "right"; "required": false; }; "bottom": { "alias": "bottom"; "required": false; }; "left": { "alias": "left"; "required": false; }; "front": { "alias": "front"; "required": false; }; "back": { "alias": "back"; "required": false; }; "disableX": { "alias": "disableX"; "required": false; }; "disableY": { "alias": "disableY"; "required": false; }; "disableZ": { "alias": "disableZ"; "required": false; }; "disable": { "alias": "disable"; "required": false; }; "precise": { "alias": "precise"; "required": false; }; }, { "centered": "centered"; }, never, ["*"], true, never>;
|
|
40
62
|
}
|