@luma.gl/shadertools 9.0.10 → 9.1.0-alpha.1

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 (158) hide show
  1. package/dist/dist.dev.js +5890 -5309
  2. package/dist/dist.min.js +81 -79
  3. package/dist/index.cjs +361 -3099
  4. package/dist/index.cjs.map +4 -4
  5. package/dist/index.d.ts +6 -3
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +6 -4
  8. package/dist/lib/preprocessor/preprocessor.d.ts +5 -0
  9. package/dist/lib/preprocessor/preprocessor.d.ts.map +1 -0
  10. package/dist/lib/preprocessor/preprocessor.js +26 -0
  11. package/dist/lib/shader-assembler.d.ts +4 -5
  12. package/dist/lib/shader-assembler.d.ts.map +1 -1
  13. package/dist/lib/shader-assembler.js +21 -16
  14. package/dist/lib/shader-assembly/assemble-shaders.d.ts +28 -22
  15. package/dist/lib/shader-assembly/assemble-shaders.d.ts.map +1 -1
  16. package/dist/lib/shader-assembly/assemble-shaders.js +8 -28
  17. package/dist/lib/shader-module/shader-module.d.ts +2 -0
  18. package/dist/lib/shader-module/shader-module.d.ts.map +1 -1
  19. package/dist/lib/shader-module/shader-module.js +12 -1
  20. package/dist/lib/wgsl/get-shader-layout-wgsl.js +5 -5
  21. package/dist/modules/engine/picking/picking.d.ts +26 -2
  22. package/dist/modules/engine/picking/picking.d.ts.map +1 -1
  23. package/dist/modules/engine/picking/picking.js +4 -2
  24. package/dist/modules/engine/project/project.d.ts +14 -2
  25. package/dist/modules/engine/project/project.d.ts.map +1 -1
  26. package/dist/modules/lighting/gouraud-material/gouraud-material.d.ts +52 -2
  27. package/dist/modules/lighting/gouraud-material/gouraud-material.d.ts.map +1 -1
  28. package/dist/modules/lighting/gouraud-material/gouraud-material.js +1 -1
  29. package/dist/modules/lighting/lights/lighting.d.ts +82 -0
  30. package/dist/modules/lighting/lights/lighting.d.ts.map +1 -0
  31. package/dist/modules/lighting/lights/{lighting-uniforms.js → lighting.js} +7 -7
  32. package/dist/modules/lighting/no-material/dirlight.d.ts +17 -2
  33. package/dist/modules/lighting/no-material/dirlight.d.ts.map +1 -1
  34. package/dist/modules/lighting/no-material/dirlight.js +2 -0
  35. package/dist/modules/lighting/pbr-material/pbr-material.d.ts +102 -3
  36. package/dist/modules/lighting/pbr-material/pbr-material.d.ts.map +1 -1
  37. package/dist/modules/lighting/pbr-material/pbr-material.js +1 -1
  38. package/dist/modules/lighting/phong-material/phong-material.d.ts +54 -2
  39. package/dist/modules/lighting/phong-material/phong-material.d.ts.map +1 -1
  40. package/dist/modules/lighting/phong-material/phong-material.js +3 -1
  41. package/dist/modules/math/fp16/fp16-utils.d.ts +13 -0
  42. package/dist/modules/math/fp16/fp16-utils.d.ts.map +1 -0
  43. package/dist/modules/math/fp16/fp16-utils.js +116 -0
  44. package/dist/modules/math/fp64/fp64-utils.d.ts.map +1 -0
  45. package/dist/modules/math/random/random.d.ts +2 -2
  46. package/dist/modules/math/random/random.d.ts.map +1 -1
  47. package/dist/modules/postprocessing/fxaa/fxaa.d.ts +9 -2
  48. package/dist/modules/postprocessing/fxaa/fxaa.d.ts.map +1 -1
  49. package/dist/modules/postprocessing/fxaa/fxaa.js +2 -1
  50. package/dist/modules/postprocessing/image-adjust-filters/brightnesscontrast.d.ts +25 -2
  51. package/dist/modules/postprocessing/image-adjust-filters/brightnesscontrast.d.ts.map +1 -1
  52. package/dist/modules/postprocessing/image-adjust-filters/denoise.d.ts +20 -2
  53. package/dist/modules/postprocessing/image-adjust-filters/denoise.d.ts.map +1 -1
  54. package/dist/modules/postprocessing/image-adjust-filters/huesaturation.d.ts +23 -2
  55. package/dist/modules/postprocessing/image-adjust-filters/huesaturation.d.ts.map +1 -1
  56. package/dist/modules/postprocessing/image-adjust-filters/noise.d.ts +17 -2
  57. package/dist/modules/postprocessing/image-adjust-filters/noise.d.ts.map +1 -1
  58. package/dist/modules/postprocessing/image-adjust-filters/sepia.d.ts +17 -2
  59. package/dist/modules/postprocessing/image-adjust-filters/sepia.d.ts.map +1 -1
  60. package/dist/modules/postprocessing/image-adjust-filters/vibrance.d.ts +14 -2
  61. package/dist/modules/postprocessing/image-adjust-filters/vibrance.d.ts.map +1 -1
  62. package/dist/modules/postprocessing/image-adjust-filters/vignette.d.ts +23 -2
  63. package/dist/modules/postprocessing/image-adjust-filters/vignette.d.ts.map +1 -1
  64. package/dist/modules/postprocessing/image-blur-filters/tiltshift.d.ts +48 -2
  65. package/dist/modules/postprocessing/image-blur-filters/tiltshift.d.ts.map +1 -1
  66. package/dist/modules/postprocessing/image-blur-filters/tiltshift.js +1 -1
  67. package/dist/modules/postprocessing/image-blur-filters/triangleblur.d.ts +34 -2
  68. package/dist/modules/postprocessing/image-blur-filters/triangleblur.d.ts.map +1 -1
  69. package/dist/modules/postprocessing/image-blur-filters/zoomblur.d.ts +25 -2
  70. package/dist/modules/postprocessing/image-blur-filters/zoomblur.d.ts.map +1 -1
  71. package/dist/modules/postprocessing/image-fun-filters/colorhalftone.d.ts +28 -2
  72. package/dist/modules/postprocessing/image-fun-filters/colorhalftone.d.ts.map +1 -1
  73. package/dist/modules/postprocessing/image-fun-filters/dotscreen.d.ts +28 -2
  74. package/dist/modules/postprocessing/image-fun-filters/dotscreen.d.ts.map +1 -1
  75. package/dist/modules/postprocessing/image-fun-filters/edgework.d.ts +30 -2
  76. package/dist/modules/postprocessing/image-fun-filters/edgework.d.ts.map +1 -1
  77. package/dist/modules/postprocessing/image-fun-filters/hexagonalpixelate.d.ts +23 -2
  78. package/dist/modules/postprocessing/image-fun-filters/hexagonalpixelate.d.ts.map +1 -1
  79. package/dist/modules/postprocessing/image-fun-filters/ink.d.ts +17 -2
  80. package/dist/modules/postprocessing/image-fun-filters/ink.d.ts.map +1 -1
  81. package/dist/modules/postprocessing/image-fun-filters/magnify.d.ts +25 -2
  82. package/dist/modules/postprocessing/image-fun-filters/magnify.d.ts.map +1 -1
  83. package/dist/modules/postprocessing/image-warp-filters/bulgepinch.d.ts +32 -2
  84. package/dist/modules/postprocessing/image-warp-filters/bulgepinch.d.ts.map +1 -1
  85. package/dist/modules/postprocessing/image-warp-filters/bulgepinch.js +1 -1
  86. package/dist/modules/postprocessing/image-warp-filters/swirl.d.ts +32 -2
  87. package/dist/modules/postprocessing/image-warp-filters/swirl.d.ts.map +1 -1
  88. package/dist/modules/postprocessing/image-warp-filters/swirl.js +1 -1
  89. package/dist/modules/postprocessing/image-warp-filters/warp.d.ts +5 -2
  90. package/dist/modules/postprocessing/image-warp-filters/warp.d.ts.map +1 -1
  91. package/dist/modules-webgl1/lighting/pbr/pbr.d.ts +1 -0
  92. package/dist/modules-webgl1/lighting/pbr/pbr.d.ts.map +1 -1
  93. package/dist/modules-webgl1/lighting/pbr/pbr.js +2 -1
  94. package/dist/modules-webgl1/math/fp64/fp64.d.ts +1 -1
  95. package/dist/modules-webgl1/math/fp64/fp64.d.ts.map +1 -1
  96. package/dist/modules-webgl1/math/fp64/fp64.js +1 -1
  97. package/dist/modules-webgl1/project/project.d.ts +7 -2
  98. package/dist/modules-webgl1/project/project.d.ts.map +1 -1
  99. package/dist/modules-webgl1/project/project.js +1 -1
  100. package/package.json +5 -4
  101. package/src/index.ts +8 -6
  102. package/src/lib/preprocessor/preprocessor.ts +31 -0
  103. package/src/lib/shader-assembler.ts +24 -18
  104. package/src/lib/shader-assembly/assemble-shaders.ts +34 -41
  105. package/src/lib/shader-module/shader-module-instance.ts +1 -1
  106. package/src/lib/shader-module/shader-module.ts +14 -0
  107. package/src/lib/wgsl/get-shader-layout-wgsl.ts +5 -5
  108. package/src/modules/engine/picking/picking.ts +6 -4
  109. package/src/modules/engine/project/project.ts +2 -2
  110. package/src/modules/lighting/gouraud-material/gouraud-material.ts +3 -3
  111. package/src/modules/lighting/lights/{lighting-uniforms.ts → lighting.ts} +10 -11
  112. package/src/modules/lighting/no-material/dirlight.ts +4 -2
  113. package/src/modules/lighting/pbr-material/pbr-material.ts +5 -4
  114. package/src/modules/lighting/phong-material/phong-material.ts +5 -3
  115. package/src/modules/math/fp16/fp16-utils.ts +155 -0
  116. package/src/modules/math/random/random.ts +2 -1
  117. package/src/modules/postprocessing/fxaa/fxaa.ts +4 -3
  118. package/src/modules/postprocessing/image-adjust-filters/brightnesscontrast.ts +2 -2
  119. package/src/modules/postprocessing/image-adjust-filters/denoise.ts +2 -2
  120. package/src/modules/postprocessing/image-adjust-filters/huesaturation.ts +2 -2
  121. package/src/modules/postprocessing/image-adjust-filters/noise.ts +2 -2
  122. package/src/modules/postprocessing/image-adjust-filters/sepia.ts +2 -2
  123. package/src/modules/postprocessing/image-adjust-filters/vibrance.ts +2 -2
  124. package/src/modules/postprocessing/image-adjust-filters/vignette.ts +2 -2
  125. package/src/modules/postprocessing/image-blur-filters/tiltshift.ts +3 -3
  126. package/src/modules/postprocessing/image-blur-filters/triangleblur.ts +2 -2
  127. package/src/modules/postprocessing/image-blur-filters/zoomblur.ts +2 -2
  128. package/src/modules/postprocessing/image-fun-filters/colorhalftone.ts +2 -2
  129. package/src/modules/postprocessing/image-fun-filters/dotscreen.ts +2 -2
  130. package/src/modules/postprocessing/image-fun-filters/edgework.ts +2 -2
  131. package/src/modules/postprocessing/image-fun-filters/hexagonalpixelate.ts +2 -2
  132. package/src/modules/postprocessing/image-fun-filters/ink.ts +2 -2
  133. package/src/modules/postprocessing/image-fun-filters/magnify.ts +2 -2
  134. package/src/modules/postprocessing/image-warp-filters/bulgepinch.ts +3 -3
  135. package/src/modules/postprocessing/image-warp-filters/swirl.ts +3 -3
  136. package/src/modules/postprocessing/image-warp-filters/warp.ts +2 -2
  137. package/src/modules-webgl1/lighting/pbr/pbr.ts +2 -1
  138. package/src/modules-webgl1/math/fp64/fp64.ts +1 -1
  139. package/src/modules-webgl1/project/project.ts +3 -3
  140. package/dist/lib/shader-assembly/select-shaders.d.ts +0 -28
  141. package/dist/lib/shader-assembly/select-shaders.d.ts.map +0 -1
  142. package/dist/lib/shader-assembly/select-shaders.js +0 -45
  143. package/dist/libs/wgsl-reflect/wgsl_reflect.module.d.ts +0 -1112
  144. package/dist/libs/wgsl-reflect/wgsl_reflect.module.d.ts.map +0 -1
  145. package/dist/libs/wgsl-reflect/wgsl_reflect.module.js +0 -3389
  146. package/dist/modules/lighting/lights/lighting-uniforms.d.ts +0 -46
  147. package/dist/modules/lighting/lights/lighting-uniforms.d.ts.map +0 -1
  148. package/dist/modules-webgl1/math/fp64/fp64-utils.d.ts.map +0 -1
  149. package/src/.DS_Store +0 -0
  150. package/src/lib/.DS_Store +0 -0
  151. package/src/lib/shader-assembly/.assemble-shaders.ts.swp +0 -0
  152. package/src/lib/shader-assembly/select-shaders.ts +0 -71
  153. package/src/libs/wgsl-reflect/wgsl_reflect.module.js +0 -3394
  154. package/src/libs/wgsl-reflect/wgsl_reflect.module.js.map +0 -1
  155. package/src/modules/.DS_Store +0 -0
  156. /package/dist/{modules-webgl1 → modules}/math/fp64/fp64-utils.d.ts +0 -0
  157. /package/dist/{modules-webgl1 → modules}/math/fp64/fp64-utils.js +0 -0
  158. /package/src/{modules-webgl1 → modules}/math/fp64/fp64-utils.ts +0 -0

There are too many changes on this page to be displayed.


The amount of changes on this page would crash your brower.

You can still verify the content by downloading the package file manually.