angular-three-soba 2.0.0-beta.26 → 2.0.0-beta.261

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (397) hide show
  1. package/README.md +62 -4
  2. package/abstractions/README.md +278 -2
  3. package/abstractions/index.d.ts +11 -6
  4. package/abstractions/lib/catmull-rom-line.d.ts +648 -0
  5. package/abstractions/lib/cubic-bezier-line.d.ts +19 -0
  6. package/abstractions/lib/edges.d.ts +850 -0
  7. package/abstractions/lib/gradient-texture.d.ts +24 -0
  8. package/abstractions/lib/grid.d.ts +339 -0
  9. package/abstractions/lib/helper.d.ts +25 -0
  10. package/abstractions/lib/line.d.ts +41 -0
  11. package/abstractions/lib/prism-geometry.d.ts +30 -0
  12. package/abstractions/lib/quadratic-bezier-line.d.ts +21 -0
  13. package/abstractions/lib/text-3d.d.ts +338 -0
  14. package/abstractions/lib/text.d.ts +55 -0
  15. package/cameras/README.md +91 -2
  16. package/cameras/index.d.ts +4 -4
  17. package/cameras/lib/camera-content.d.ts +10 -0
  18. package/cameras/lib/cube-camera.d.ts +38 -0
  19. package/cameras/lib/orthographic-camera.d.ts +40 -0
  20. package/cameras/lib/perspective-camera.d.ts +36 -0
  21. package/controls/README.md +95 -2
  22. package/controls/index.d.ts +2 -1
  23. package/controls/lib/camera-controls.d.ts +31 -0
  24. package/controls/lib/orbit-controls.d.ts +38 -0
  25. package/esm2022/abstractions/index.mjs +12 -7
  26. package/esm2022/abstractions/lib/catmull-rom-line.mjs +76 -0
  27. package/esm2022/abstractions/lib/cubic-bezier-line.mjs +51 -0
  28. package/esm2022/abstractions/lib/edges.mjs +70 -0
  29. package/esm2022/abstractions/lib/gradient-texture.mjs +91 -0
  30. package/esm2022/abstractions/lib/grid.mjs +103 -0
  31. package/esm2022/abstractions/lib/helper.mjs +80 -0
  32. package/esm2022/abstractions/lib/line.mjs +123 -0
  33. package/esm2022/abstractions/lib/prism-geometry.mjs +55 -0
  34. package/esm2022/abstractions/lib/quadratic-bezier-line.mjs +73 -0
  35. package/esm2022/abstractions/lib/text-3d.mjs +98 -0
  36. package/esm2022/abstractions/lib/text.mjs +92 -0
  37. package/esm2022/cameras/index.mjs +5 -5
  38. package/esm2022/cameras/lib/camera-content.mjs +14 -0
  39. package/esm2022/cameras/lib/cube-camera.mjs +111 -0
  40. package/esm2022/cameras/lib/orthographic-camera.mjs +131 -0
  41. package/esm2022/cameras/lib/perspective-camera.mjs +104 -0
  42. package/esm2022/controls/index.mjs +3 -2
  43. package/esm2022/controls/lib/camera-controls.mjs +127 -0
  44. package/esm2022/controls/lib/orbit-controls.mjs +126 -0
  45. package/esm2022/loaders/index.mjs +6 -5
  46. package/esm2022/loaders/lib/font-loader.mjs +49 -0
  47. package/esm2022/loaders/lib/gltf-loader.mjs +33 -0
  48. package/esm2022/loaders/lib/loader.mjs +109 -0
  49. package/esm2022/loaders/lib/progress.mjs +51 -0
  50. package/esm2022/loaders/lib/texture-loader.mjs +32 -0
  51. package/esm2022/materials/index.mjs +7 -7
  52. package/esm2022/materials/lib/custom-shader-material.mjs +71 -0
  53. package/esm2022/materials/lib/mesh-distort-material.mjs +42 -0
  54. package/esm2022/materials/lib/mesh-reflector-material.mjs +278 -0
  55. package/esm2022/materials/lib/mesh-refraction-material.mjs +144 -0
  56. package/esm2022/materials/lib/mesh-transmission-material.mjs +188 -0
  57. package/esm2022/materials/lib/mesh-wobble-material.mjs +42 -0
  58. package/esm2022/misc/index.mjs +10 -14
  59. package/esm2022/misc/lib/animations.mjs +74 -0
  60. package/esm2022/misc/lib/bake-shadows.mjs +26 -0
  61. package/esm2022/misc/lib/computed-attribute.mjs +56 -0
  62. package/esm2022/misc/lib/constants.mjs +5 -0
  63. package/esm2022/misc/lib/decal.mjs +135 -0
  64. package/esm2022/misc/lib/deprecated.mjs +15 -0
  65. package/esm2022/misc/lib/depth-buffer.mjs +39 -0
  66. package/esm2022/misc/lib/fbo.mjs +89 -0
  67. package/esm2022/misc/lib/sampler.mjs +121 -0
  68. package/esm2022/shaders/index.mjs +3 -18
  69. package/esm2022/shaders/lib/grid-material.mjs +81 -0
  70. package/esm2022/shaders/lib/mesh-refraction-material.mjs +163 -0
  71. package/esm2022/staging/index.mjs +19 -22
  72. package/esm2022/staging/lib/accumulative-shadows.mjs +182 -0
  73. package/esm2022/staging/lib/backdrop.mjs +73 -0
  74. package/esm2022/staging/lib/bb-anchor.mjs +58 -0
  75. package/esm2022/staging/lib/bounds.mjs +286 -0
  76. package/esm2022/staging/lib/camera-shake.mjs +69 -0
  77. package/esm2022/staging/lib/caustics.mjs +188 -0
  78. package/esm2022/staging/lib/center.mjs +113 -0
  79. package/esm2022/staging/lib/contact-shadows.mjs +201 -0
  80. package/esm2022/staging/lib/environment.mjs +465 -0
  81. package/esm2022/staging/lib/float.mjs +60 -0
  82. package/esm2022/staging/lib/lightformer.mjs +107 -0
  83. package/esm2022/staging/lib/matcap-texture.mjs +81 -0
  84. package/esm2022/staging/lib/normal-texture.mjs +85 -0
  85. package/esm2022/staging/lib/randomized-lights.mjs +104 -0
  86. package/esm2022/staging/lib/render-texture.mjs +213 -0
  87. package/esm2022/staging/lib/sky.mjs +86 -0
  88. package/esm2022/staging/lib/spot-light.mjs +450 -0
  89. package/esm2022/staging/lib/stage.mjs +236 -0
  90. package/esm2022/vanilla-exports/angular-three-soba-vanilla-exports.mjs +5 -0
  91. package/esm2022/vanilla-exports/index.mjs +3 -0
  92. package/fesm2022/angular-three-soba-abstractions.mjs +739 -718
  93. package/fesm2022/angular-three-soba-abstractions.mjs.map +1 -1
  94. package/fesm2022/angular-three-soba-cameras.mjs +260 -307
  95. package/fesm2022/angular-three-soba-cameras.mjs.map +1 -1
  96. package/fesm2022/angular-three-soba-controls.mjs +174 -110
  97. package/fesm2022/angular-three-soba-controls.mjs.map +1 -1
  98. package/fesm2022/angular-three-soba-loaders.mjs +151 -129
  99. package/fesm2022/angular-three-soba-loaders.mjs.map +1 -1
  100. package/fesm2022/angular-three-soba-materials.mjs +511 -764
  101. package/fesm2022/angular-three-soba-materials.mjs.map +1 -1
  102. package/fesm2022/angular-three-soba-misc.mjs +405 -2149
  103. package/fesm2022/angular-three-soba-misc.mjs.map +1 -1
  104. package/fesm2022/angular-three-soba-shaders.mjs +33 -1373
  105. package/fesm2022/angular-three-soba-shaders.mjs.map +1 -1
  106. package/fesm2022/angular-three-soba-staging.mjs +2329 -3538
  107. package/fesm2022/angular-three-soba-staging.mjs.map +1 -1
  108. package/fesm2022/angular-three-soba-vanilla-exports.mjs +6 -0
  109. package/fesm2022/angular-three-soba-vanilla-exports.mjs.map +1 -0
  110. package/loaders/README.md +130 -2
  111. package/loaders/index.d.ts +5 -4
  112. package/loaders/lib/font-loader.d.ts +27 -0
  113. package/loaders/lib/gltf-loader.d.ts +21 -0
  114. package/loaders/lib/loader.d.ts +29 -0
  115. package/loaders/lib/progress.d.ts +9 -0
  116. package/loaders/lib/texture-loader.d.ts +13 -0
  117. package/materials/README.md +160 -2
  118. package/materials/index.d.ts +6 -6
  119. package/materials/lib/custom-shader-material.d.ts +19 -0
  120. package/materials/lib/mesh-distort-material.d.ts +18 -0
  121. package/materials/lib/mesh-reflector-material.d.ts +50 -0
  122. package/materials/lib/mesh-refraction-material.d.ts +42 -0
  123. package/materials/lib/mesh-transmission-material.d.ts +77 -0
  124. package/materials/lib/mesh-wobble-material.d.ts +15 -0
  125. package/metadata.json +1 -1
  126. package/misc/README.md +217 -2
  127. package/misc/index.d.ts +9 -13
  128. package/misc/lib/animations.d.ts +14 -0
  129. package/misc/lib/computed-attribute.d.ts +69 -0
  130. package/misc/lib/constants.d.ts +1 -0
  131. package/misc/lib/decal.d.ts +27 -0
  132. package/misc/lib/deprecated.d.ts +14 -0
  133. package/misc/lib/depth-buffer.d.ts +8 -0
  134. package/misc/lib/fbo.d.ts +47 -0
  135. package/misc/lib/sampler.d.ts +73 -0
  136. package/package.json +60 -38
  137. package/shaders/index.d.ts +2 -17
  138. package/shaders/lib/grid-material.d.ts +69 -0
  139. package/shaders/lib/mesh-refraction-material.d.ts +11 -0
  140. package/staging/README.md +472 -2
  141. package/staging/index.d.ts +18 -21
  142. package/staging/lib/accumulative-shadows.d.ts +75 -0
  143. package/staging/lib/backdrop.d.ts +22 -0
  144. package/staging/lib/bb-anchor.d.ts +17 -0
  145. package/staging/lib/bounds.d.ts +47 -0
  146. package/staging/lib/camera-shake.d.ts +29 -0
  147. package/staging/lib/caustics.d.ts +53 -0
  148. package/staging/lib/center.d.ts +422 -0
  149. package/staging/lib/contact-shadows.d.ts +45 -0
  150. package/staging/lib/environment.d.ts +159 -0
  151. package/staging/lib/float.d.ts +19 -0
  152. package/staging/lib/lightformer.d.ts +334 -0
  153. package/staging/lib/matcap-texture.d.ts +32 -0
  154. package/staging/lib/normal-texture.d.ts +37 -0
  155. package/staging/lib/randomized-lights.d.ts +54 -0
  156. package/staging/lib/render-texture.d.ts +64 -0
  157. package/staging/lib/sky.d.ts +32 -0
  158. package/staging/lib/spot-light.d.ts +120 -0
  159. package/staging/lib/stage.d.ts +376 -0
  160. package/vanilla-exports/README.md +3 -0
  161. package/vanilla-exports/index.d.ts +27 -0
  162. package/web-types.json +1 -1
  163. package/abstractions/billboard/billboard.d.ts +0 -28
  164. package/abstractions/detailed/detailed.d.ts +0 -26
  165. package/abstractions/edges/edges.d.ts +0 -34
  166. package/abstractions/grid/grid.d.ts +0 -50
  167. package/abstractions/text/text.d.ts +0 -82
  168. package/abstractions/text-3d/text-3d.d.ts +0 -84
  169. package/assets/distort.vert.glsl +0 -1
  170. package/cameras/camera/camera-content.d.ts +0 -13
  171. package/cameras/camera/camera.d.ts +0 -26
  172. package/cameras/cube-camera/cube-camera.d.ts +0 -69
  173. package/cameras/orthographic-camera/orthographic-camera.d.ts +0 -37
  174. package/cameras/perspective-camera/perspective-camera.d.ts +0 -18
  175. package/controls/orbit-controls/orbit-controls.d.ts +0 -54
  176. package/esm2022/abstractions/billboard/billboard.mjs +0 -74
  177. package/esm2022/abstractions/detailed/detailed.mjs +0 -64
  178. package/esm2022/abstractions/edges/edges.mjs +0 -88
  179. package/esm2022/abstractions/grid/grid.mjs +0 -180
  180. package/esm2022/abstractions/text/text.mjs +0 -274
  181. package/esm2022/abstractions/text-3d/text-3d.mjs +0 -172
  182. package/esm2022/cameras/camera/camera-content.mjs +0 -21
  183. package/esm2022/cameras/camera/camera.mjs +0 -77
  184. package/esm2022/cameras/cube-camera/cube-camera.mjs +0 -161
  185. package/esm2022/cameras/orthographic-camera/orthographic-camera.mjs +0 -102
  186. package/esm2022/cameras/perspective-camera/perspective-camera.mjs +0 -46
  187. package/esm2022/controls/orbit-controls/orbit-controls.mjs +0 -185
  188. package/esm2022/gizmos/angular-three-soba-gizmos.mjs +0 -5
  189. package/esm2022/gizmos/gizmo-helper/gizmo-helper.mjs +0 -197
  190. package/esm2022/gizmos/gizmo-helper/gizmo-viewcube/constants.mjs +0 -31
  191. package/esm2022/gizmos/gizmo-helper/gizmo-viewcube/gizmo-viewcube-edge.mjs +0 -93
  192. package/esm2022/gizmos/gizmo-helper/gizmo-viewcube/gizmo-viewcube-face.mjs +0 -150
  193. package/esm2022/gizmos/gizmo-helper/gizmo-viewcube/gizmo-viewcube-input.mjs +0 -66
  194. package/esm2022/gizmos/gizmo-helper/gizmo-viewcube/gizmo-viewcube.mjs +0 -71
  195. package/esm2022/gizmos/gizmo-helper/gizmo-viewport/gizmo-viewport-axis.mjs +0 -195
  196. package/esm2022/gizmos/gizmo-helper/gizmo-viewport/gizmo-viewport.mjs +0 -272
  197. package/esm2022/gizmos/index.mjs +0 -4
  198. package/esm2022/loaders/gltf-loader/gltf-loader.mjs +0 -30
  199. package/esm2022/loaders/loader/loader.mjs +0 -138
  200. package/esm2022/loaders/progress/progress.mjs +0 -52
  201. package/esm2022/loaders/texture-loader/texture-loader.mjs +0 -28
  202. package/esm2022/materials/mesh-distort-material/mesh-distort-material.mjs +0 -82
  203. package/esm2022/materials/mesh-reflector-material/mesh-reflector-material.mjs +0 -367
  204. package/esm2022/materials/mesh-refraction-material/mesh-refraction-material.mjs +0 -171
  205. package/esm2022/materials/mesh-transmission-material/mesh-transmission-material.mjs +0 -278
  206. package/esm2022/materials/mesh-wobble-material/mesh-wobble-material.mjs +0 -68
  207. package/esm2022/materials/point-material/point-material.mjs +0 -50
  208. package/esm2022/misc/animations/animations.mjs +0 -59
  209. package/esm2022/misc/bake-shadows/bake-shadows.mjs +0 -24
  210. package/esm2022/misc/caustics/caustics.mjs +0 -387
  211. package/esm2022/misc/decal/decal.mjs +0 -187
  212. package/esm2022/misc/depth-buffer/depth-buffer.mjs +0 -44
  213. package/esm2022/misc/example/example.mjs +0 -160
  214. package/esm2022/misc/fbo/fbo.mjs +0 -47
  215. package/esm2022/misc/html/html-wrapper.mjs +0 -478
  216. package/esm2022/misc/html/html.mjs +0 -304
  217. package/esm2022/misc/sampler/sampler.mjs +0 -142
  218. package/esm2022/misc/shadow/shadow.mjs +0 -111
  219. package/esm2022/misc/stats-gl/stats-gl.mjs +0 -61
  220. package/esm2022/misc/trail/trail.mjs +0 -209
  221. package/esm2022/misc/trail-texture/inject-trail-texture.mjs +0 -17
  222. package/esm2022/misc/trail-texture/trail-texture.mjs +0 -106
  223. package/esm2022/modifiers/angular-three-soba-modifiers.mjs +0 -5
  224. package/esm2022/modifiers/curve-modifier/curve-modifier.mjs +0 -64
  225. package/esm2022/modifiers/index.mjs +0 -2
  226. package/esm2022/performances/adaptive-dpr/adaptive-dpr.mjs +0 -44
  227. package/esm2022/performances/adaptive-events/adaptive-events.mjs +0 -27
  228. package/esm2022/performances/angular-three-soba-performances.mjs +0 -5
  229. package/esm2022/performances/index.mjs +0 -8
  230. package/esm2022/performances/instances/instances.mjs +0 -220
  231. package/esm2022/performances/instances/position-mesh.mjs +0 -52
  232. package/esm2022/performances/points/points-input.mjs +0 -64
  233. package/esm2022/performances/points/points.mjs +0 -326
  234. package/esm2022/performances/points/position-point.mjs +0 -54
  235. package/esm2022/performances/segments/segment-object.mjs +0 -9
  236. package/esm2022/performances/segments/segments.mjs +0 -182
  237. package/esm2022/shaders/blur-pass/blur-pass.mjs +0 -61
  238. package/esm2022/shaders/caustics/caustics-material.mjs +0 -130
  239. package/esm2022/shaders/caustics/caustics-projection-material.mjs +0 -31
  240. package/esm2022/shaders/convolution-material/convolution-material.mjs +0 -94
  241. package/esm2022/shaders/discard-material/discard-material.mjs +0 -3
  242. package/esm2022/shaders/grid-material/grid-material.mjs +0 -77
  243. package/esm2022/shaders/mesh-distort-material/mesh-distort-material.mjs +0 -56
  244. package/esm2022/shaders/mesh-reflector-material/mesh-reflector-material.mjs +0 -223
  245. package/esm2022/shaders/mesh-refraction-material/mesh-refraction-material.mjs +0 -170
  246. package/esm2022/shaders/mesh-transmission-material/mesh-transmission-material.mjs +0 -268
  247. package/esm2022/shaders/mesh-wobble-material/mesh-wobble-material.mjs +0 -37
  248. package/esm2022/shaders/shader-material/shader-material.mjs +0 -34
  249. package/esm2022/shaders/soft-shadow-material/soft-shadow-material.mjs +0 -25
  250. package/esm2022/shaders/sparkles-material/sparkles-material.mjs +0 -33
  251. package/esm2022/shaders/spot-light-material/spot-light-material.mjs +0 -86
  252. package/esm2022/shaders/star-field-material/star-field-material.mjs +0 -33
  253. package/esm2022/shaders/wireframe-material/wireframe-material.mjs +0 -247
  254. package/esm2022/staging/accumulative-shadows/accumulative-shadows.mjs +0 -267
  255. package/esm2022/staging/accumulative-shadows/progressive-light-map.mjs +0 -108
  256. package/esm2022/staging/accumulative-shadows/randomized-lights.mjs +0 -206
  257. package/esm2022/staging/backdrop/backdrop.mjs +0 -77
  258. package/esm2022/staging/bb-anchor/bb-anchor.mjs +0 -69
  259. package/esm2022/staging/bounds/bounds.mjs +0 -308
  260. package/esm2022/staging/camera-shake/camera-shake.mjs +0 -123
  261. package/esm2022/staging/center/center.mjs +0 -165
  262. package/esm2022/staging/cloud/cloud.mjs +0 -158
  263. package/esm2022/staging/contact-shadows/contact-shadows.mjs +0 -246
  264. package/esm2022/staging/environment/assets.mjs +0 -13
  265. package/esm2022/staging/environment/environment-cube.mjs +0 -47
  266. package/esm2022/staging/environment/environment-ground.mjs +0 -41
  267. package/esm2022/staging/environment/environment-input.mjs +0 -119
  268. package/esm2022/staging/environment/environment-map.mjs +0 -53
  269. package/esm2022/staging/environment/environment-portal.mjs +0 -113
  270. package/esm2022/staging/environment/environment.mjs +0 -61
  271. package/esm2022/staging/environment/utils.mjs +0 -106
  272. package/esm2022/staging/float/float.mjs +0 -94
  273. package/esm2022/staging/matcap-texture/matcap-texture.mjs +0 -64
  274. package/esm2022/staging/normal-texture/normal-texture.mjs +0 -53
  275. package/esm2022/staging/sky/sky.mjs +0 -119
  276. package/esm2022/staging/sparkles/sparkles.mjs +0 -164
  277. package/esm2022/staging/spot-light/shadow-mesh-input.mjs +0 -63
  278. package/esm2022/staging/spot-light/shadow-mesh.mjs +0 -266
  279. package/esm2022/staging/spot-light/spot-light-input.mjs +0 -84
  280. package/esm2022/staging/spot-light/spot-light.mjs +0 -81
  281. package/esm2022/staging/spot-light/volumetric-mesh.mjs +0 -98
  282. package/esm2022/staging/stage/stage.mjs +0 -389
  283. package/esm2022/staging/stars/stars.mjs +0 -147
  284. package/esm2022/staging/wireframe/wireframe-input.mjs +0 -191
  285. package/esm2022/staging/wireframe/wireframe.mjs +0 -228
  286. package/esm2022/utils/angular-three-soba-utils.mjs +0 -5
  287. package/esm2022/utils/content/content.mjs +0 -15
  288. package/esm2022/utils/index.mjs +0 -2
  289. package/fesm2022/angular-three-soba-gizmos.mjs +0 -1043
  290. package/fesm2022/angular-three-soba-gizmos.mjs.map +0 -1
  291. package/fesm2022/angular-three-soba-modifiers.mjs +0 -71
  292. package/fesm2022/angular-three-soba-modifiers.mjs.map +0 -1
  293. package/fesm2022/angular-three-soba-performances.mjs +0 -956
  294. package/fesm2022/angular-three-soba-performances.mjs.map +0 -1
  295. package/fesm2022/angular-three-soba-utils.mjs +0 -22
  296. package/fesm2022/angular-three-soba-utils.mjs.map +0 -1
  297. package/gizmos/README.md +0 -3
  298. package/gizmos/gizmo-helper/gizmo-helper.d.ts +0 -69
  299. package/gizmos/gizmo-helper/gizmo-viewcube/constants.d.ts +0 -12
  300. package/gizmos/gizmo-helper/gizmo-viewcube/gizmo-viewcube-edge.d.ts +0 -22
  301. package/gizmos/gizmo-helper/gizmo-viewcube/gizmo-viewcube-face.d.ts +0 -29
  302. package/gizmos/gizmo-helper/gizmo-viewcube/gizmo-viewcube-input.d.ts +0 -33
  303. package/gizmos/gizmo-helper/gizmo-viewcube/gizmo-viewcube.d.ts +0 -10
  304. package/gizmos/gizmo-helper/gizmo-viewport/gizmo-viewport-axis.d.ts +0 -40
  305. package/gizmos/gizmo-helper/gizmo-viewport/gizmo-viewport.d.ts +0 -30
  306. package/gizmos/index.d.ts +0 -3
  307. package/loaders/gltf-loader/gltf-loader.d.ts +0 -10
  308. package/loaders/loader/loader.d.ts +0 -33
  309. package/loaders/progress/progress.d.ts +0 -9
  310. package/loaders/texture-loader/texture-loader.d.ts +0 -7
  311. package/materials/mesh-distort-material/mesh-distort-material.d.ts +0 -40
  312. package/materials/mesh-reflector-material/mesh-reflector-material.d.ts +0 -99
  313. package/materials/mesh-refraction-material/mesh-refraction-material.d.ts +0 -62
  314. package/materials/mesh-transmission-material/mesh-transmission-material.d.ts +0 -107
  315. package/materials/mesh-wobble-material/mesh-wobble-material.d.ts +0 -29
  316. package/materials/point-material/point-material.d.ts +0 -24
  317. package/misc/animations/animations.d.ts +0 -15
  318. package/misc/caustics/caustics.d.ts +0 -87
  319. package/misc/decal/decal.d.ts +0 -49
  320. package/misc/depth-buffer/depth-buffer.d.ts +0 -9
  321. package/misc/example/example.d.ts +0 -81
  322. package/misc/fbo/fbo.d.ts +0 -17
  323. package/misc/html/html-wrapper.d.ts +0 -559
  324. package/misc/html/html.d.ts +0 -214
  325. package/misc/sampler/sampler.d.ts +0 -67
  326. package/misc/shadow/shadow.d.ts +0 -37
  327. package/misc/stats-gl/stats-gl.d.ts +0 -24
  328. package/misc/trail/trail.d.ts +0 -57
  329. package/misc/trail-texture/inject-trail-texture.d.ts +0 -9
  330. package/misc/trail-texture/trail-texture.d.ts +0 -50
  331. package/modifiers/README.md +0 -3
  332. package/modifiers/curve-modifier/curve-modifier.d.ts +0 -23
  333. package/modifiers/index.d.ts +0 -1
  334. package/performances/README.md +0 -3
  335. package/performances/adaptive-dpr/adaptive-dpr.d.ts +0 -14
  336. package/performances/adaptive-events/adaptive-events.d.ts +0 -9
  337. package/performances/index.d.ts +0 -7
  338. package/performances/instances/instances.d.ts +0 -79
  339. package/performances/instances/position-mesh.d.ts +0 -10
  340. package/performances/points/points-input.d.ts +0 -32
  341. package/performances/points/points.d.ts +0 -92
  342. package/performances/points/position-point.d.ts +0 -11
  343. package/performances/segments/segment-object.d.ts +0 -7
  344. package/performances/segments/segments.d.ts +0 -124
  345. package/shaders/blur-pass/blur-pass.d.ts +0 -23
  346. package/shaders/caustics/caustics-material.d.ts +0 -4
  347. package/shaders/caustics/caustics-projection-material.d.ts +0 -4
  348. package/shaders/convolution-material/convolution-material.d.ts +0 -7
  349. package/shaders/discard-material/discard-material.d.ts +0 -3
  350. package/shaders/grid-material/grid-material.d.ts +0 -37
  351. package/shaders/mesh-distort-material/mesh-distort-material.d.ts +0 -295
  352. package/shaders/mesh-reflector-material/mesh-reflector-material.d.ts +0 -50
  353. package/shaders/mesh-refraction-material/mesh-refraction-material.d.ts +0 -4
  354. package/shaders/mesh-transmission-material/mesh-transmission-material.d.ts +0 -25
  355. package/shaders/mesh-wobble-material/mesh-wobble-material.d.ts +0 -16
  356. package/shaders/shader-material/shader-material.d.ts +0 -6
  357. package/shaders/soft-shadow-material/soft-shadow-material.d.ts +0 -19
  358. package/shaders/sparkles-material/sparkles-material.d.ts +0 -17
  359. package/shaders/spot-light-material/spot-light-material.d.ts +0 -13
  360. package/shaders/star-field-material/star-field-material.d.ts +0 -13
  361. package/shaders/wireframe-material/wireframe-material.d.ts +0 -58
  362. package/staging/accumulative-shadows/accumulative-shadows.d.ts +0 -146
  363. package/staging/accumulative-shadows/progressive-light-map.d.ts +0 -34
  364. package/staging/accumulative-shadows/randomized-lights.d.ts +0 -90
  365. package/staging/backdrop/backdrop.d.ts +0 -30
  366. package/staging/bb-anchor/bb-anchor.d.ts +0 -27
  367. package/staging/bounds/bounds.d.ts +0 -134
  368. package/staging/camera-shake/camera-shake.d.ts +0 -43
  369. package/staging/center/center.d.ts +0 -70
  370. package/staging/cloud/cloud.d.ts +0 -51
  371. package/staging/contact-shadows/contact-shadows.d.ts +0 -70
  372. package/staging/environment/assets.d.ts +0 -13
  373. package/staging/environment/environment-cube.d.ts +0 -15
  374. package/staging/environment/environment-ground.d.ts +0 -13
  375. package/staging/environment/environment-input.d.ts +0 -68
  376. package/staging/environment/environment-map.d.ts +0 -16
  377. package/staging/environment/environment-portal.d.ts +0 -18
  378. package/staging/environment/environment.d.ts +0 -8
  379. package/staging/environment/utils.d.ts +0 -7
  380. package/staging/float/float.d.ts +0 -31
  381. package/staging/matcap-texture/matcap-texture.d.ts +0 -13
  382. package/staging/normal-texture/normal-texture.d.ts +0 -16
  383. package/staging/sky/sky.d.ts +0 -48
  384. package/staging/sparkles/sparkles.d.ts +0 -63
  385. package/staging/spot-light/shadow-mesh-input.d.ts +0 -29
  386. package/staging/spot-light/shadow-mesh.d.ts +0 -37
  387. package/staging/spot-light/spot-light-input.d.ts +0 -38
  388. package/staging/spot-light/spot-light.d.ts +0 -39
  389. package/staging/spot-light/volumetric-mesh.d.ts +0 -24
  390. package/staging/stage/stage.d.ts +0 -130
  391. package/staging/stars/stars.d.ts +0 -45
  392. package/staging/wireframe/wireframe-input.d.ts +0 -65
  393. package/staging/wireframe/wireframe.d.ts +0 -28
  394. package/utils/README.md +0 -3
  395. package/utils/content/content.d.ts +0 -8
  396. package/utils/index.d.ts +0 -1
  397. /package/misc/{bake-shadows → lib}/bake-shadows.d.ts +0 -0
@@ -1,99 +0,0 @@
1
- import { type NgtMeshStandardMaterial } 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 type NgtsMeshReflectorMaterialState = {
6
- resolution: number;
7
- mixBlur: number;
8
- mixStrength: number;
9
- blur: [number, number] | number;
10
- mirror: number;
11
- minDepthThreshold: number;
12
- maxDepthThreshold: number;
13
- depthScale: number;
14
- depthToBlurRatioBias: number;
15
- distortionMap?: THREE.Texture;
16
- distortion: number;
17
- mixContrast: number;
18
- reflectorOffset: number;
19
- };
20
- declare global {
21
- interface HTMLElementTagNameMap {
22
- /**
23
- * @extends ngt-mesh-standard-material
24
- */
25
- 'ngts-mesh-reflector-material': NgtsMeshReflectorMaterialState & NgtMeshStandardMaterial;
26
- }
27
- }
28
- export declare class NgtsMeshReflectorMaterial {
29
- private inputs;
30
- materialRef: import("angular-three").NgtInjectedRef<MeshReflectorMaterial>;
31
- set _resolution(resolution: number);
32
- set _mixBlur(mixBlur: number);
33
- set _mixStrength(mixStrength: number);
34
- set _blur(blur: [number, number] | number);
35
- set _mirror(mirror: number);
36
- set _minDepthThreshold(minDepthThreshold: number);
37
- set _maxDepthThreshold(maxDepthThreshold: number);
38
- set _depthScale(depthScale: number);
39
- set _depthToBlurRatioBias(depthToBlurRatioBias: number);
40
- set _distortionMap(distortionMap: THREE.Texture);
41
- set _distortion(distortion: number);
42
- set _mixContrast(mixContrast: number);
43
- set _reflectorOffset(reflectorOffset: number);
44
- private reflectorProps;
45
- defines: import("@angular/core").Signal<{
46
- USE_BLUR: string | undefined;
47
- USE_DEPTH: string | undefined;
48
- USE_DISTORTION: string | undefined;
49
- }>;
50
- mirror: import("@angular/core").Signal<number>;
51
- textureMatrix: import("@angular/core").Signal<THREE.Matrix4>;
52
- mixBlur: import("@angular/core").Signal<number>;
53
- tDiffuse: import("@angular/core").Signal<THREE.Texture>;
54
- tDepth: import("@angular/core").Signal<THREE.DepthTexture>;
55
- tDiffuseBlur: import("@angular/core").Signal<THREE.Texture>;
56
- hasBlur: import("@angular/core").Signal<boolean>;
57
- mixStrength: import("@angular/core").Signal<number>;
58
- minDepthThreshold: import("@angular/core").Signal<number>;
59
- maxDepthThreshold: import("@angular/core").Signal<number>;
60
- depthScale: import("@angular/core").Signal<number>;
61
- depthToBlurRatioBias: import("@angular/core").Signal<number>;
62
- distortion: import("@angular/core").Signal<number>;
63
- distortionMap: import("@angular/core").Signal<THREE.Texture | undefined>;
64
- mixContrast: import("@angular/core").Signal<number>;
65
- private store;
66
- private gl;
67
- private reflectorPlane;
68
- private normal;
69
- private reflectorWorldPosition;
70
- private cameraWorldPosition;
71
- private rotationMatrix;
72
- private lookAtPosition;
73
- private clipPlane;
74
- private view;
75
- private target;
76
- private q;
77
- private virtualCamera;
78
- private _textureMatrix;
79
- private __blur;
80
- private __resolution;
81
- private __mirror;
82
- private __mixBlur;
83
- private __mixStrength;
84
- private __minDepthThreshold;
85
- private __maxDepthThreshold;
86
- private __depthScale;
87
- private __depthToBlurRatioBias;
88
- private __distortion;
89
- private __distortionMap;
90
- private __mixContrast;
91
- private normalizedBlur;
92
- private __hasBlur;
93
- private states;
94
- constructor();
95
- private onBeforeRender;
96
- private beforeRender;
97
- static ɵfac: i0.ɵɵFactoryDeclaration<NgtsMeshReflectorMaterial, never>;
98
- static ɵcmp: i0.ɵɵComponentDeclaration<NgtsMeshReflectorMaterial, "ngts-mesh-reflector-material", never, { "materialRef": { "alias": "materialRef"; "required": false; }; "_resolution": { "alias": "resolution"; "required": false; }; "_mixBlur": { "alias": "mixBlur"; "required": false; }; "_mixStrength": { "alias": "mixStrength"; "required": false; }; "_blur": { "alias": "blur"; "required": false; }; "_mirror": { "alias": "mirror"; "required": false; }; "_minDepthThreshold": { "alias": "minDepthThreshold"; "required": false; }; "_maxDepthThreshold": { "alias": "maxDepthThreshold"; "required": false; }; "_depthScale": { "alias": "depthScale"; "required": false; }; "_depthToBlurRatioBias": { "alias": "depthToBlurRatioBias"; "required": false; }; "_distortionMap": { "alias": "distortionMap"; "required": false; }; "_distortion": { "alias": "distortion"; "required": false; }; "_mixContrast": { "alias": "mixContrast"; "required": false; }; "_reflectorOffset": { "alias": "reflectorOffset"; "required": false; }; }, {}, never, ["*"], true, never>;
99
- }
@@ -1,62 +0,0 @@
1
- import { type NgtShaderMaterial } from 'angular-three';
2
- import type { NgtsMeshTranmissionMaterialState } from '../mesh-transmission-material/mesh-transmission-material';
3
- import * as i0 from "@angular/core";
4
- export type NgtsMeshRefractionMaterialState = {
5
- /** Environment map */
6
- envMap: THREE.CubeTexture | THREE.Texture;
7
- /** Number of ray-cast bounces, it can be expensive to have too many, 2 */
8
- bounces: number;
9
- /** Refraction index, 2.4 */
10
- ior: number;
11
- /** Fresnel (strip light), 0 */
12
- fresnel: number;
13
- /** RGB shift intensity, can be expensive, 0 */
14
- aberrationStrength: number;
15
- /** Color, white */
16
- color: THREE.ColorRepresentation;
17
- /** If this is on it uses fewer ray casts for the RGB shift sacrificing physical accuracy, true */
18
- fastChroma: boolean;
19
- };
20
- declare global {
21
- interface HTMLElementTagNameMap {
22
- /**
23
- * @extends ngt-shader-material
24
- */
25
- 'ngts-mesh-refraction-material': NgtsMeshTranmissionMaterialState & NgtShaderMaterial;
26
- }
27
- }
28
- export declare class NgtsMeshRefractionMaterial {
29
- private inputs;
30
- materialRef: import("angular-three").NgtInjectedRef<import("three").ShaderMaterial>;
31
- /** Environment map */
32
- set _envMap(envMap: THREE.CubeTexture | THREE.Texture);
33
- /** Number of ray-cast bounces, it can be expensive to have too many, 2 */
34
- set _bounces(bounces: number);
35
- /** Refraction index, 2.4 */
36
- set _ior(ior: number);
37
- /** Fresnel (strip light), 0 */
38
- set _fresnel(fresnel: number);
39
- /** RGB shift intensity, can be expensive, 0 */
40
- set _aberrationStrength(aberrationStrength: number);
41
- /** Color, white */
42
- set _color(color: THREE.ColorRepresentation);
43
- /** If this is on it uses fewer ray casts for the RGB shift sacrificing physical accuracy, true */
44
- set _fastChroma(fastChroma: boolean);
45
- envMap: import("@angular/core").Signal<import("three").Texture | import("three").CubeTexture>;
46
- bounces: import("@angular/core").Signal<number>;
47
- ior: import("@angular/core").Signal<number>;
48
- fresnel: import("@angular/core").Signal<number>;
49
- aberrationStrength: import("@angular/core").Signal<number>;
50
- color: import("@angular/core").Signal<import("three").ColorRepresentation>;
51
- fastChroma: import("@angular/core").Signal<boolean>;
52
- private store;
53
- private size;
54
- defines: import("@angular/core").Signal<{
55
- [key: string]: string;
56
- } | null>;
57
- resolution: import("@angular/core").Signal<number[]>;
58
- constructor();
59
- private setupGeometry;
60
- static ɵfac: i0.ɵɵFactoryDeclaration<NgtsMeshRefractionMaterial, never>;
61
- static ɵcmp: i0.ɵɵComponentDeclaration<NgtsMeshRefractionMaterial, "ngts-mesh-refraction-material", never, { "materialRef": { "alias": "materialRef"; "required": false; }; "_envMap": { "alias": "envMap"; "required": true; }; "_bounces": { "alias": "bounces"; "required": false; }; "_ior": { "alias": "ior"; "required": false; }; "_fresnel": { "alias": "fresnel"; "required": false; }; "_aberrationStrength": { "alias": "aberrationStrength"; "required": false; }; "_color": { "alias": "color"; "required": false; }; "_fastChroma": { "alias": "fastChroma"; "required": false; }; }, {}, never, ["*"], true, never>;
62
- }
@@ -1,107 +0,0 @@
1
- import { type NgtMeshPhysicalMaterial } from 'angular-three';
2
- import { MeshTransmissionMaterial } from 'angular-three-soba/shaders';
3
- import * as THREE from 'three';
4
- import * as i0 from "@angular/core";
5
- export type NgtsMeshTranmissionMaterialState = {
6
- /** transmissionSampler, you can use the threejs transmission sampler texture that is
7
- * generated once for all transmissive materials. The upside is that it can be faster if you
8
- * use multiple MeshPhysical and Transmission materials, the downside is that transmissive materials
9
- * using this can't see other transparent or transmissive objects, default: false */
10
- transmissionSampler: boolean;
11
- /** Render the backside of the material (more cost, better results), default: false */
12
- backside: boolean;
13
- /** Backside thickness (when backside is true), default: 0 */
14
- backsideThickness: number;
15
- /** Resolution of the local buffer, default: undefined (fullscreen) */
16
- resolution: number;
17
- /** Resolution of the local buffer for backfaces, default: undefined (fullscreen) */
18
- backsideResolution: number;
19
- /** Refraction samples, default: 10 */
20
- samples: number;
21
- /** Buffer scene background (can be a texture, a cubetexture or a color), default: null */
22
- background: THREE.Texture | THREE.Color;
23
- transmission: number;
24
- thickness: number;
25
- roughness: number;
26
- chromaticAberration: number;
27
- anisotropy: number;
28
- anisotropicBlur: number;
29
- distortion: number;
30
- distortionScale: number;
31
- temporalDistortion: number;
32
- /** The scene rendered into a texture (use it to share a texture between materials), default: null */
33
- buffer: THREE.Texture | null;
34
- /** Internals */
35
- time: number;
36
- };
37
- declare global {
38
- interface HTMLElementTagNameMap {
39
- /**
40
- * @extends ngt-mesh-physical-material
41
- */
42
- 'ngts-mesh-transmission-material': NgtsMeshTranmissionMaterialState & NgtMeshPhysicalMaterial;
43
- }
44
- }
45
- export declare class NgtsMeshTranmissionMaterial {
46
- private inputs;
47
- materialRef: import("angular-three").NgtInjectedRef<MeshTransmissionMaterial & {
48
- time: number;
49
- buffer?: THREE.Texture | undefined;
50
- }>;
51
- /** transmissionSampler, you can use the threejs transmission sampler texture that is
52
- * generated once for all transmissive materials. The upside is that it can be faster if you
53
- * use multiple MeshPhysical and Transmission materials, the downside is that transmissive materials
54
- * using this can't see other transparent or transmissive objects, default: false */
55
- set _transmissionSampler(transmissionSampler: boolean);
56
- /** Render the backside of the material (more cost, better results), default: false */
57
- set _backside(backside: boolean);
58
- /** Backside thickness (when backside is true), default: 0 */
59
- set _backsideThickness(backsideThickness: number);
60
- /** Resolution of the local buffer, default: undefined (fullscreen) */
61
- set _resolution(resolution: number);
62
- /** Resolution of the local buffer for backfaces, default: undefined (fullscreen) */
63
- set _backsideResolution(backsideResolution: number);
64
- /** Refraction samples, default: 10 */
65
- set _samples(samples: number);
66
- /** Buffer scene background (can be a texture, a cubetexture or a color), default: null */
67
- set _background(background: THREE.Texture | THREE.Color);
68
- set _transmission(transmission: number);
69
- set _thickness(thickness: number);
70
- set _roughness(roughness: number);
71
- set _chromaticAberration(chromaticAberration: number);
72
- set _anisotropy(anisotropy: number);
73
- set _anisotropicBlur(anisotropicBlur: number);
74
- set _distortion(distortion: number);
75
- set _distortionScale(distortionScale: number);
76
- set _temporalDistortion(temporalDistortion: number);
77
- /** The scene rendered into a texture (use it to share a texture between materials), default: null */
78
- set _buffer(buffer: THREE.Texture);
79
- /** Internals */
80
- set _time(time: number);
81
- transmissionSampler: import("@angular/core").Signal<boolean>;
82
- backside: import("@angular/core").Signal<boolean>;
83
- transmission: import("@angular/core").Signal<number>;
84
- thickness: import("@angular/core").Signal<number>;
85
- backsideThickness: import("@angular/core").Signal<number>;
86
- samples: import("@angular/core").Signal<number>;
87
- roughness: import("@angular/core").Signal<number>;
88
- anisotropy: import("@angular/core").Signal<number>;
89
- anisotropicBlur: import("@angular/core").Signal<number>;
90
- chromaticAberration: import("@angular/core").Signal<number>;
91
- distortion: import("@angular/core").Signal<number>;
92
- distortionScale: import("@angular/core").Signal<number>;
93
- temporalDistortion: import("@angular/core").Signal<number>;
94
- buffer: import("@angular/core").Signal<THREE.Texture | null>;
95
- time: import("@angular/core").Signal<number>;
96
- private discardMaterial;
97
- private backsideResolution;
98
- private resolution;
99
- private fboBackSettings;
100
- private fboMainSettings;
101
- fboBackRef: import("angular-three").NgtInjectedRef<THREE.WebGLRenderTarget<THREE.Texture> | null>;
102
- fboMainRef: import("angular-three").NgtInjectedRef<THREE.WebGLRenderTarget<THREE.Texture> | null>;
103
- side: 0;
104
- constructor();
105
- static ɵfac: i0.ɵɵFactoryDeclaration<NgtsMeshTranmissionMaterial, never>;
106
- static ɵcmp: i0.ɵɵComponentDeclaration<NgtsMeshTranmissionMaterial, "ngts-mesh-transmission-material", never, { "materialRef": { "alias": "materialRef"; "required": false; }; "_transmissionSampler": { "alias": "transmissionSampler"; "required": false; }; "_backside": { "alias": "backside"; "required": false; }; "_backsideThickness": { "alias": "backsideThickness"; "required": false; }; "_resolution": { "alias": "resolution"; "required": false; }; "_backsideResolution": { "alias": "backsideResolution"; "required": false; }; "_samples": { "alias": "samples"; "required": false; }; "_background": { "alias": "background"; "required": false; }; "_transmission": { "alias": "transmission"; "required": false; }; "_thickness": { "alias": "thickness"; "required": false; }; "_roughness": { "alias": "roughness"; "required": false; }; "_chromaticAberration": { "alias": "chromaticAberration"; "required": false; }; "_anisotropy": { "alias": "anisotropy"; "required": false; }; "_anisotropicBlur": { "alias": "anisotropicBlur"; "required": false; }; "_distortion": { "alias": "distortion"; "required": false; }; "_distortionScale": { "alias": "distortionScale"; "required": false; }; "_temporalDistortion": { "alias": "temporalDistortion"; "required": false; }; "_buffer": { "alias": "buffer"; "required": false; }; "_time": { "alias": "time"; "required": false; }; }, {}, never, never, true, never>;
107
- }
@@ -1,29 +0,0 @@
1
- import { type NgtMeshStandardMaterial } from 'angular-three';
2
- import { MeshWobbleMaterial } from 'angular-three-soba/shaders';
3
- import * as i0 from "@angular/core";
4
- export type NgtsMeshWobbleMaterialState = {
5
- time: number;
6
- factor: number;
7
- speed: number;
8
- };
9
- declare global {
10
- interface HTMLElementTagNameMap {
11
- /**
12
- * @extends ngt-mesh-standard-material
13
- */
14
- 'ngts-mesh-wobble-material': NgtsMeshWobbleMaterialState & NgtMeshStandardMaterial;
15
- }
16
- }
17
- export declare class NgtsMeshWobbleMaterial {
18
- private inputs;
19
- materialRef: import("angular-three").NgtInjectedRef<MeshWobbleMaterial>;
20
- set _time(time: number);
21
- set _factor(factor: number);
22
- set _speed(speed: number);
23
- material: MeshWobbleMaterial;
24
- time: import("@angular/core").Signal<number>;
25
- factor: import("@angular/core").Signal<number>;
26
- constructor();
27
- static ɵfac: i0.ɵɵFactoryDeclaration<NgtsMeshWobbleMaterial, never>;
28
- static ɵcmp: i0.ɵɵComponentDeclaration<NgtsMeshWobbleMaterial, "ngts-mesh-wobble-material", never, { "materialRef": { "alias": "materialRef"; "required": false; }; "_time": { "alias": "time"; "required": false; }; "_factor": { "alias": "factor"; "required": false; }; "_speed": { "alias": "speed"; "required": false; }; }, {}, never, never, true, never>;
29
- }
@@ -1,24 +0,0 @@
1
- import { type NgtPointsMaterial } from 'angular-three';
2
- import * as THREE from 'three';
3
- import * as i0 from "@angular/core";
4
- export declare class PointMaterial extends THREE.PointsMaterial {
5
- constructor(parameters: THREE.PointsMaterialParameters);
6
- }
7
- declare global {
8
- interface HTMLElementTagNameMap {
9
- /**
10
- * @extends ngt-points-material
11
- */
12
- 'ngt-point-material': NgtPointsMaterial;
13
- /**
14
- * @extends ngt-points-material
15
- */
16
- 'ngts-point-material': NgtPointsMaterial;
17
- }
18
- }
19
- export declare class NgtsPointMaterial {
20
- pointMaterialRef: import("angular-three").NgtInjectedRef<PointMaterial>;
21
- material: PointMaterial;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<NgtsPointMaterial, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<NgtsPointMaterial, "ngts-point-material", never, { "pointMaterialRef": { "alias": "pointMaterialRef"; "required": false; }; }, {}, never, never, true, never>;
24
- }
@@ -1,15 +0,0 @@
1
- import { Injector } from '@angular/core';
2
- import { type NgtRef } from 'angular-three';
3
- import * as THREE from 'three';
4
- export declare function injectNgtsAnimations(animationsFactory: () => THREE.AnimationClip[], { ref, injector, playFirstClip, }?: {
5
- ref?: NgtRef<THREE.Object3D>;
6
- playFirstClip?: boolean;
7
- injector?: Injector;
8
- }): {
9
- ref: import("angular-three").NgtInjectedRef<THREE.Object3D<THREE.Event>>;
10
- actions: Record<string, THREE.AnimationAction>;
11
- mixer: THREE.AnimationMixer;
12
- names: string[];
13
- clips: THREE.AnimationClip[];
14
- ready: import("@angular/core").Signal<boolean>;
15
- };
@@ -1,87 +0,0 @@
1
- import { ElementRef } from '@angular/core';
2
- import { type NgtGroup } from 'angular-three';
3
- import * as THREE from 'three';
4
- import * as i0 from "@angular/core";
5
- export type 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
- declare global {
30
- interface HTMLElementTagNameMap {
31
- /**
32
- * @extends ngt-group
33
- */
34
- 'ngts-caustics': NgtsCausticsState & NgtGroup;
35
- }
36
- }
37
- export declare class NgtsCaustics {
38
- CustomBlending: 5;
39
- OneFactor: 201;
40
- SrcAlphaFactor: 204;
41
- Math: Math;
42
- private inputs;
43
- causticsRef: import("angular-three").NgtInjectedRef<THREE.Group>;
44
- /** How many frames it will render, set it to Infinity for runtime, default: 1 */
45
- set _frames(frames: number);
46
- /** Enables visual cues to help you stage your scene, default: false */
47
- set _debug(debug: boolean);
48
- /** Will display caustics only and skip the models, default: false */
49
- set _causticsOnly(causticsOnly: boolean);
50
- /** Will include back faces and enable the backsideIOR prop, default: false */
51
- set _backside(backside: boolean);
52
- /** The IOR refraction index, default: 1.1 */
53
- set _ior(ior: number);
54
- /** The IOR refraction index for back faces (only available when backside is enabled), default: 1.1 */
55
- set _backsideIOR(backsideIOR: number);
56
- /** The texel size, default: 0.3125 */
57
- set _worldRadius(worldRadius: number);
58
- /** Intensity of the prjected caustics, default: 0.05 */
59
- set _intensity(intensity: number);
60
- /** Caustics color, default: white */
61
- set _color(color: THREE.ColorRepresentation);
62
- /** Buffer resolution, default: 2048 */
63
- set _resolution(resolution: number);
64
- /** Camera position, it will point towards the contents bounds center, default: [5, 5, 5] */
65
- set _lightSource(lightSource: [x: number, y: number, z: number] | ElementRef<THREE.Object3D>);
66
- private resolution;
67
- private normalTargetSettings;
68
- private causticsTargetSettings;
69
- private normalTargetFbo;
70
- private normalTargetBFbo;
71
- causticsTargetFbo: import("angular-three").NgtInjectedRef<THREE.WebGLRenderTarget<THREE.Texture> | null>;
72
- causticsTargetBFbo: import("angular-three").NgtInjectedRef<THREE.WebGLRenderTarget<THREE.Texture> | null>;
73
- private store;
74
- color: import("@angular/core").Signal<THREE.ColorRepresentation>;
75
- debug: import("@angular/core").Signal<boolean>;
76
- planeRef: import("angular-three").NgtInjectedRef<THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes>, THREE.Material | THREE.Material[]>>;
77
- sceneRef: import("angular-three").NgtInjectedRef<THREE.Scene>;
78
- cameraRef: import("angular-three").NgtInjectedRef<THREE.OrthographicCamera>;
79
- private sceneChildren;
80
- private planeChildren;
81
- private causticsChildren;
82
- constructor();
83
- private updateWorldMatrix;
84
- private setBeforeRender;
85
- static ɵfac: i0.ɵɵFactoryDeclaration<NgtsCaustics, never>;
86
- 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>;
87
- }
@@ -1,49 +0,0 @@
1
- import { type NgtEuler, type NgtMesh, type NgtRef, type NgtVector3 } from 'angular-three';
2
- import * as THREE from 'three';
3
- import * as i0 from "@angular/core";
4
- export type NgtsDecalState = {
5
- debug: boolean;
6
- mesh?: NgtRef<THREE.Mesh>;
7
- position: NgtVector3;
8
- rotation: NgtEuler | number;
9
- scale: NgtVector3;
10
- map?: THREE.Texture;
11
- polygonOffsetFactor: number;
12
- depthTest: boolean;
13
- };
14
- declare global {
15
- interface HTMLElementTagNameMap {
16
- /**
17
- * @extends ngt-mesh
18
- */
19
- 'ngts-decal': NgtsDecalState & NgtMesh;
20
- }
21
- }
22
- export declare class NgtsDecal {
23
- private inputs;
24
- decalRef: import("angular-three").NgtInjectedRef<THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes>, THREE.Material | THREE.Material[]>>;
25
- set _debug(debug: boolean);
26
- set _mesh(mesh: NgtRef<THREE.Mesh>);
27
- set _position(position: NgtVector3);
28
- set _rotation(rotation: NgtEuler | number);
29
- set _scale(scale: NgtVector3);
30
- set _map(map: THREE.Texture);
31
- set _polygonOffsetFactor(polygonOffsetFactor: number);
32
- set _depthTest(depthTest: boolean);
33
- private mesh;
34
- private __position;
35
- private __rotation;
36
- private __scale;
37
- private position;
38
- private rotation;
39
- private scale;
40
- helperRef: import("angular-three").NgtInjectedRef<THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes>, THREE.Material | THREE.Material[]>>;
41
- debug: import("@angular/core").Signal<boolean>;
42
- depthTest: import("@angular/core").Signal<boolean>;
43
- polygonOffsetFactor: import("@angular/core").Signal<number>;
44
- map: import("@angular/core").Signal<THREE.Texture | undefined>;
45
- constructor();
46
- private processDecal;
47
- static ɵfac: i0.ɵɵFactoryDeclaration<NgtsDecal, never>;
48
- static ɵcmp: i0.ɵɵComponentDeclaration<NgtsDecal, "ngts-decal", never, { "decalRef": { "alias": "decalRef"; "required": false; }; "_debug": { "alias": "debug"; "required": false; }; "_mesh": { "alias": "mesh"; "required": false; }; "_position": { "alias": "position"; "required": false; }; "_rotation": { "alias": "rotation"; "required": false; }; "_scale": { "alias": "scale"; "required": false; }; "_map": { "alias": "map"; "required": false; }; "_polygonOffsetFactor": { "alias": "polygonOffsetFactor"; "required": false; }; "_depthTest": { "alias": "depthTest"; "required": false; }; }, {}, never, ["*"], true, never>;
49
- }
@@ -1,9 +0,0 @@
1
- import { type Injector } from '@angular/core';
2
- import * as THREE from 'three';
3
- export interface NgtsDepthBufferParams {
4
- size: number;
5
- frames: number;
6
- }
7
- export declare function injectNgtsDepthBuffer(paramsFactory?: () => Partial<NgtsDepthBufferParams>, { injector }?: {
8
- injector?: Injector;
9
- }): import("angular-three").NgtInjectedRef<THREE.DepthTexture | null>;
@@ -1,81 +0,0 @@
1
- import { Group } from 'three';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * define states of a component. usually acts for inputs signalStore
5
- */
6
- export type NgtsExampleState = {
7
- font: string;
8
- color: THREE.ColorRepresentation;
9
- debug: boolean;
10
- bevelSize: number;
11
- };
12
- /**
13
- * We can setup public API for this soba component with createInjectionToken + forwardRef
14
- * the `example.api` is **usually** a computed property in the component class
15
- *
16
- * @see Bounds for example
17
- */
18
- export declare const injectNgtsExampleApi: {
19
- (): import("@angular/core").Signal<{
20
- bevelSize: number;
21
- increment: () => void;
22
- decrement: () => void;
23
- }>;
24
- (injectOptions: import("@angular/core").InjectOptions & {
25
- optional?: false | undefined;
26
- }): import("@angular/core").Signal<{
27
- bevelSize: number;
28
- increment: () => void;
29
- decrement: () => void;
30
- }>;
31
- (injectOptions: import("@angular/core").InjectOptions): import("@angular/core").Signal<{
32
- bevelSize: number;
33
- increment: () => void;
34
- decrement: () => void;
35
- }> | null;
36
- }, provideNgtsExampleApi: (value?: import("@angular/core").Signal<{
37
- bevelSize: number;
38
- increment: () => void;
39
- decrement: () => void;
40
- }> | undefined) => import("@angular/core").Provider;
41
- export declare class NgtsExample {
42
- /**
43
- * use signalStore to store inputs with default inputs
44
- */
45
- private inputs;
46
- /**
47
- * a soba component usually has a Input for the component ref and this Input always has a default value with injectNgtRef
48
- */
49
- exampleRef: import("angular-three").NgtInjectedRef<Group>;
50
- /**
51
- * setup Input for the Inputs state. Use alias to have an easier time to setup computed
52
- *
53
- * @example: this way "private font" and "set _font" won't conflict
54
- * private font = this.inputs.select('font');
55
- */
56
- set _font(font: string);
57
- set _color(color: THREE.ColorRepresentation);
58
- set _debug(debug: boolean);
59
- set _bevelSize(bevelSize: number);
60
- /**
61
- * exposes signals from inputs
62
- */
63
- bevelSize: import("@angular/core").Signal<number>;
64
- font: import("@angular/core").Signal<string>;
65
- debug: import("@angular/core").Signal<boolean>;
66
- color: import("@angular/core").Signal<import("three").ColorRepresentation>;
67
- /**
68
- * can have internal state
69
- */
70
- count: import("@angular/core").WritableSignal<number>;
71
- /**
72
- * Expose the public API for this soba component
73
- */
74
- api: import("@angular/core").Signal<{
75
- bevelSize: number;
76
- increment: () => void;
77
- decrement: () => void;
78
- }>;
79
- static ɵfac: i0.ɵɵFactoryDeclaration<NgtsExample, never>;
80
- static ɵcmp: i0.ɵɵComponentDeclaration<NgtsExample, "ngts-example", never, { "exampleRef": { "alias": "exampleRef"; "required": false; }; "_font": { "alias": "font"; "required": true; }; "_color": { "alias": "color"; "required": false; }; "_debug": { "alias": "debug"; "required": false; }; "_bevelSize": { "alias": "bevelSize"; "required": false; }; }, {}, never, ["*"], true, never>;
81
- }
package/misc/fbo/fbo.d.ts DELETED
@@ -1,17 +0,0 @@
1
- import { type Injector } from '@angular/core';
2
- import * as THREE from 'three';
3
- interface FBOSettings extends THREE.WebGLRenderTargetOptions {
4
- /** Defines the count of MSAA samples. Can only be used with WebGL 2. Default: 0 */
5
- samples?: number;
6
- /** If set, the scene depth will be rendered into buffer.depthTexture. Default: false */
7
- depth?: boolean;
8
- }
9
- export interface NgtsFBOParams {
10
- width?: number | FBOSettings;
11
- height?: number;
12
- settings?: FBOSettings;
13
- }
14
- export declare function injectNgtsFBO(fboParams: () => NgtsFBOParams, { injector }?: {
15
- injector?: Injector;
16
- }): import("angular-three").NgtInjectedRef<THREE.WebGLRenderTarget<THREE.Texture> | null>;
17
- export {};