@aura3d/rendering 1.5.2 → 2.0.0

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 (196) hide show
  1. package/README.md +8 -2
  2. package/dist/ArchitecturalLighting.d.ts +35 -0
  3. package/dist/ArchitecturalLighting.d.ts.map +1 -0
  4. package/dist/ArchitecturalLighting.js +162 -0
  5. package/dist/ArchitecturalLighting.js.map +1 -0
  6. package/dist/ArchitecturalMaterialCatalog.d.ts +1 -1
  7. package/dist/ArchitecturalMaterialCatalog.d.ts.map +1 -1
  8. package/dist/ArchitecturalMaterialCatalog.js +1 -1
  9. package/dist/ArchitecturalMaterialCatalog.js.map +1 -1
  10. package/dist/ArchitecturalMeasurement.d.ts +27 -0
  11. package/dist/ArchitecturalMeasurement.d.ts.map +1 -0
  12. package/dist/ArchitecturalMeasurement.js +112 -0
  13. package/dist/ArchitecturalMeasurement.js.map +1 -0
  14. package/dist/CanonicalProductScene.d.ts +13 -0
  15. package/dist/CanonicalProductScene.d.ts.map +1 -0
  16. package/dist/CanonicalProductScene.js +78 -0
  17. package/dist/CanonicalProductScene.js.map +1 -0
  18. package/dist/CascadedShadowMaps.d.ts +1 -1
  19. package/dist/CascadedShadowMaps.d.ts.map +1 -1
  20. package/dist/CascadedShadowMaps.js +1 -1
  21. package/dist/CascadedShadowMaps.js.map +1 -1
  22. package/dist/DepthPass.d.ts +1 -1
  23. package/dist/DepthPass.d.ts.map +1 -1
  24. package/dist/DepthPass.js +2 -2
  25. package/dist/DepthPass.js.map +1 -1
  26. package/dist/EnvironmentBackgroundPass.d.ts +1 -1
  27. package/dist/EnvironmentBackgroundPass.d.ts.map +1 -1
  28. package/dist/EnvironmentBackgroundPass.js +2 -2
  29. package/dist/EnvironmentBackgroundPass.js.map +1 -1
  30. package/dist/EnvironmentPlatform.js +2 -2
  31. package/dist/EnvironmentPlatform.js.map +1 -1
  32. package/dist/ForwardPass.d.ts +1 -1
  33. package/dist/ForwardPass.d.ts.map +1 -1
  34. package/dist/ForwardPass.js +24 -10
  35. package/dist/ForwardPass.js.map +1 -1
  36. package/dist/Geometry.d.ts +2 -0
  37. package/dist/Geometry.d.ts.map +1 -1
  38. package/dist/Geometry.js +15 -0
  39. package/dist/Geometry.js.map +1 -1
  40. package/dist/InstancedPBRMaterial.js +1 -1
  41. package/dist/InstancedPBRMaterial.js.map +1 -1
  42. package/dist/InstancedUnlitMaterial.js +1 -1
  43. package/dist/InstancedUnlitMaterial.js.map +1 -1
  44. package/dist/Material.js +2 -2
  45. package/dist/Material.js.map +1 -1
  46. package/dist/MaterialBinding.js +4 -4
  47. package/dist/MaterialBinding.js.map +1 -1
  48. package/dist/MaterialInstance.js +2 -2
  49. package/dist/MaterialInstance.js.map +1 -1
  50. package/dist/MorphUnlitMaterial.js +1 -1
  51. package/dist/MorphUnlitMaterial.js.map +1 -1
  52. package/dist/NormalMappedPBRMaterial.js +1 -1
  53. package/dist/NormalMappedPBRMaterial.js.map +1 -1
  54. package/dist/OceanSurface.d.ts +62 -0
  55. package/dist/OceanSurface.d.ts.map +1 -0
  56. package/dist/OceanSurface.js +240 -0
  57. package/dist/OceanSurface.js.map +1 -0
  58. package/dist/PBRMaterial.d.ts.map +1 -1
  59. package/dist/PBRMaterial.js +3 -3
  60. package/dist/PBRMaterial.js.map +1 -1
  61. package/dist/PortableShaderMaterial.d.ts +60 -0
  62. package/dist/PortableShaderMaterial.d.ts.map +1 -0
  63. package/dist/PortableShaderMaterial.js +223 -0
  64. package/dist/PortableShaderMaterial.js.map +1 -0
  65. package/dist/PostProcessPass.d.ts.map +1 -1
  66. package/dist/PostProcessPass.js +30 -6
  67. package/dist/PostProcessPass.js.map +1 -1
  68. package/dist/ProceduralTexture.d.ts +27 -0
  69. package/dist/ProceduralTexture.d.ts.map +1 -0
  70. package/dist/ProceduralTexture.js +336 -0
  71. package/dist/ProceduralTexture.js.map +1 -0
  72. package/dist/ProductTurntable.d.ts +96 -0
  73. package/dist/ProductTurntable.d.ts.map +1 -0
  74. package/dist/ProductTurntable.js +639 -0
  75. package/dist/ProductTurntable.js.map +1 -0
  76. package/dist/RenderDevice.d.ts +30 -0
  77. package/dist/RenderDevice.d.ts.map +1 -1
  78. package/dist/RenderDevice.js.map +1 -1
  79. package/dist/Renderer.d.ts +3 -2
  80. package/dist/Renderer.d.ts.map +1 -1
  81. package/dist/Renderer.js +23 -9
  82. package/dist/Renderer.js.map +1 -1
  83. package/dist/RendererPostprocessPlan.js +4 -4
  84. package/dist/RendererPostprocessPlan.js.map +1 -1
  85. package/dist/ScreenSpaceLineMaterial.js +1 -1
  86. package/dist/ScreenSpaceLineMaterial.js.map +1 -1
  87. package/dist/ShaderChunks.d.ts.map +1 -1
  88. package/dist/ShaderChunks.js +81 -19
  89. package/dist/ShaderChunks.js.map +1 -1
  90. package/dist/ShaderLibrary.d.ts +2 -78
  91. package/dist/ShaderLibrary.d.ts.map +1 -1
  92. package/dist/ShaderLibrary.js +127 -793
  93. package/dist/ShaderLibrary.js.map +1 -1
  94. package/dist/ShaderLibraryCore.d.ts +100 -0
  95. package/dist/ShaderLibraryCore.d.ts.map +1 -0
  96. package/dist/ShaderLibraryCore.js +800 -0
  97. package/dist/ShaderLibraryCore.js.map +1 -0
  98. package/dist/ShaderModule.d.ts +1 -1
  99. package/dist/ShaderModule.d.ts.map +1 -1
  100. package/dist/ShaderModule.js +4 -2
  101. package/dist/ShaderModule.js.map +1 -1
  102. package/dist/ShadowPass.d.ts +1 -1
  103. package/dist/ShadowPass.d.ts.map +1 -1
  104. package/dist/ShadowPass.js +6 -4
  105. package/dist/ShadowPass.js.map +1 -1
  106. package/dist/SkinnedLitMaterial.js +1 -1
  107. package/dist/SkinnedLitMaterial.js.map +1 -1
  108. package/dist/SkinnedUnlitMaterial.js +1 -1
  109. package/dist/SkinnedUnlitMaterial.js.map +1 -1
  110. package/dist/SpaceEnvironment.d.ts +54 -0
  111. package/dist/SpaceEnvironment.d.ts.map +1 -0
  112. package/dist/SpaceEnvironment.js +116 -0
  113. package/dist/SpaceEnvironment.js.map +1 -0
  114. package/dist/TerrainHeightfield.d.ts +60 -0
  115. package/dist/TerrainHeightfield.d.ts.map +1 -0
  116. package/dist/TerrainHeightfield.js +239 -0
  117. package/dist/TerrainHeightfield.js.map +1 -0
  118. package/dist/TextureBinding.d.ts +14 -0
  119. package/dist/TextureBinding.d.ts.map +1 -1
  120. package/dist/TextureBinding.js +17 -0
  121. package/dist/TextureBinding.js.map +1 -1
  122. package/dist/TexturedPBRMaterial.js +1 -1
  123. package/dist/TexturedPBRMaterial.js.map +1 -1
  124. package/dist/TexturedUnlitMaterial.js +1 -1
  125. package/dist/TexturedUnlitMaterial.js.map +1 -1
  126. package/dist/UnlitMaterial.js +1 -1
  127. package/dist/UnlitMaterial.js.map +1 -1
  128. package/dist/VegetationFixtures.d.ts +1 -1
  129. package/dist/VegetationFixtures.d.ts.map +1 -1
  130. package/dist/VegetationFixtures.js +1 -1
  131. package/dist/VegetationFixtures.js.map +1 -1
  132. package/dist/VegetationScatter.d.ts +68 -0
  133. package/dist/VegetationScatter.d.ts.map +1 -0
  134. package/dist/VegetationScatter.js +241 -0
  135. package/dist/VegetationScatter.js.map +1 -0
  136. package/dist/VoxelWorld.d.ts +51 -0
  137. package/dist/VoxelWorld.d.ts.map +1 -0
  138. package/dist/VoxelWorld.js +183 -0
  139. package/dist/VoxelWorld.js.map +1 -0
  140. package/dist/Weather.d.ts +44 -0
  141. package/dist/Weather.d.ts.map +1 -0
  142. package/dist/Weather.js +140 -0
  143. package/dist/Weather.js.map +1 -0
  144. package/dist/WebGL2Device.d.ts +22 -0
  145. package/dist/WebGL2Device.d.ts.map +1 -1
  146. package/dist/WebGL2Device.js +134 -23
  147. package/dist/WebGL2Device.js.map +1 -1
  148. package/dist/WebGPUDevice.d.ts +19 -2
  149. package/dist/WebGPUDevice.d.ts.map +1 -1
  150. package/dist/WebGPUDevice.js +188 -9
  151. package/dist/WebGPUDevice.js.map +1 -1
  152. package/dist/index.d.ts +25 -32
  153. package/dist/index.d.ts.map +1 -1
  154. package/dist/index.js +35 -19
  155. package/dist/index.js.map +1 -1
  156. package/dist/lean/LeanProductRenderer.d.ts +29 -0
  157. package/dist/lean/LeanProductRenderer.d.ts.map +1 -0
  158. package/dist/lean/LeanProductRenderer.js +38 -0
  159. package/dist/lean/LeanProductRenderer.js.map +1 -0
  160. package/dist/lean/LeanProductionRenderer.d.ts +38 -0
  161. package/dist/lean/LeanProductionRenderer.d.ts.map +1 -0
  162. package/dist/lean/LeanProductionRenderer.js +88 -0
  163. package/dist/lean/LeanProductionRenderer.js.map +1 -0
  164. package/dist/lean-runtime.d.ts +18 -0
  165. package/dist/lean-runtime.d.ts.map +1 -0
  166. package/dist/lean-runtime.js +13 -0
  167. package/dist/lean-runtime.js.map +1 -0
  168. package/dist/postprocess/EffectComposer.d.ts.map +1 -1
  169. package/dist/postprocess/EffectComposer.js +1 -3
  170. package/dist/postprocess/EffectComposer.js.map +1 -1
  171. package/dist/production-runtime/PBRHDRPipeline.d.ts.map +1 -1
  172. package/dist/production-runtime/PBRHDRPipeline.js +5 -1
  173. package/dist/production-runtime/PBRHDRPipeline.js.map +1 -1
  174. package/dist/production-runtime/ProductionRendererTypes.d.ts +9 -0
  175. package/dist/production-runtime/ProductionRendererTypes.d.ts.map +1 -1
  176. package/dist/production-runtime/ProductionRendererTypes.js.map +1 -1
  177. package/dist/production-runtime/ProductionRuntimeRenderer.d.ts +5 -0
  178. package/dist/production-runtime/ProductionRuntimeRenderer.d.ts.map +1 -1
  179. package/dist/production-runtime/ProductionRuntimeRenderer.js +53 -5
  180. package/dist/production-runtime/ProductionRuntimeRenderer.js.map +1 -1
  181. package/dist/production-runtime/ProductionWebGL2Renderer.d.ts +10 -0
  182. package/dist/production-runtime/ProductionWebGL2Renderer.d.ts.map +1 -1
  183. package/dist/production-runtime/ProductionWebGL2Renderer.js +21 -2
  184. package/dist/production-runtime/ProductionWebGL2Renderer.js.map +1 -1
  185. package/dist/production-runtime/ProductionWebGPURenderer.d.ts.map +1 -1
  186. package/dist/production-runtime/ProductionWebGPURenderer.js +4 -1
  187. package/dist/production-runtime/ProductionWebGPURenderer.js.map +1 -1
  188. package/dist/webgpu-device-entry.d.ts +25 -0
  189. package/dist/webgpu-device-entry.d.ts.map +1 -0
  190. package/dist/webgpu-device-entry.js +24 -0
  191. package/dist/webgpu-device-entry.js.map +1 -0
  192. package/dist/webgpu.d.ts +25 -0
  193. package/dist/webgpu.d.ts.map +1 -0
  194. package/dist/webgpu.js +24 -0
  195. package/dist/webgpu.js.map +1 -0
  196. package/package.json +11 -3
@@ -0,0 +1,25 @@
1
+ /**
2
+ * WS-2.2 — `WebGPUDevice` as its own entry point, so the barrel does not force it onto every bundle.
3
+ *
4
+ * ## The problem this solves
5
+ *
6
+ * `createRenderDevice` already loads the WebGPU device with `await import("./WebGPUDevice")`,
7
+ * deliberately, and says so: *"a statically imported branch is retained by bundlers even when the
8
+ * caller only ever asks for `webgl2`"*. That care was being undone one file away, because
9
+ * `packages/rendering/src/index.ts` re-exported `WebGPUDevice` as a **value**. A value re-export is a
10
+ * static edge, so every consumer of the barrel pulled in the device regardless.
11
+ *
12
+ * Measured on scenario 1 (one cube, no WebGPU): a **18,689-byte gzip chunk** on the critical path,
13
+ * `WebGPUDevice.ts` at 74,438 bytes raw.
14
+ *
15
+ * ## Why a new entry rather than dropping the export
16
+ *
17
+ * `WebGPUDevice` is a documented public export and WS-2.8 requires low-level escape hatches to stay
18
+ * reachable — a developer writing a custom WebGPU path must still be able to construct one. So it
19
+ * moves to `@aura3d/engine/rendering/webgpu`, and the barrel keeps only the **type**, which erases at
20
+ * build time. Nothing is removed from the public surface; one import specifier changes, recorded in
21
+ * `MIGRATION-1.6.md`.
22
+ */
23
+ export { WebGPUDevice } from "./WebGPUDevice";
24
+ export type { WebGPUAdapterLike, WebGPUBufferDescriptorLike, WebGPUBufferLike, WebGPUDeviceLike, WebGPUDeviceOptions, WebGPULike, WebGPUQueueLike, WebGPUSamplerDescriptorLike } from "./WebGPUDevice";
25
+ //# sourceMappingURL=webgpu-device-entry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webgpu-device-entry.d.ts","sourceRoot":"","sources":["../../../../packages/rendering/src/webgpu-device-entry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EACV,iBAAiB,EACjB,0BAA0B,EAC1B,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,UAAU,EACV,eAAe,EACf,2BAA2B,EAC5B,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * WS-2.2 — `WebGPUDevice` as its own entry point, so the barrel does not force it onto every bundle.
3
+ *
4
+ * ## The problem this solves
5
+ *
6
+ * `createRenderDevice` already loads the WebGPU device with `await import("./WebGPUDevice.js")`,
7
+ * deliberately, and says so: *"a statically imported branch is retained by bundlers even when the
8
+ * caller only ever asks for `webgl2`"*. That care was being undone one file away, because
9
+ * `packages/rendering/src/index.ts` re-exported `WebGPUDevice` as a **value**. A value re-export is a
10
+ * static edge, so every consumer of the barrel pulled in the device regardless.
11
+ *
12
+ * Measured on scenario 1 (one cube, no WebGPU): a **18,689-byte gzip chunk** on the critical path,
13
+ * `WebGPUDevice.ts` at 74,438 bytes raw.
14
+ *
15
+ * ## Why a new entry rather than dropping the export
16
+ *
17
+ * `WebGPUDevice` is a documented public export and WS-2.8 requires low-level escape hatches to stay
18
+ * reachable — a developer writing a custom WebGPU path must still be able to construct one. So it
19
+ * moves to `@aura3d/engine/rendering/webgpu`, and the barrel keeps only the **type**, which erases at
20
+ * build time. Nothing is removed from the public surface; one import specifier changes, recorded in
21
+ * `MIGRATION-1.6.md`.
22
+ */
23
+ export { WebGPUDevice } from "./WebGPUDevice.js";
24
+ //# sourceMappingURL=webgpu-device-entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webgpu-device-entry.js","sourceRoot":"","sources":["../../../../packages/rendering/src/webgpu-device-entry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * WS-2.2 — `WebGPUDevice` as its own entry point, so the barrel does not force it onto every bundle.
3
+ *
4
+ * ## The problem this solves
5
+ *
6
+ * `createRenderDevice` already loads the WebGPU device with `await import("./WebGPUDevice")`,
7
+ * deliberately, and says so: *"a statically imported branch is retained by bundlers even when the
8
+ * caller only ever asks for `webgl2`"*. That care was being undone one file away, because
9
+ * `packages/rendering/src/index.ts` re-exported `WebGPUDevice` as a **value**. A value re-export is a
10
+ * static edge, so every consumer of the barrel pulled in the device regardless.
11
+ *
12
+ * Measured on scenario 1 (one cube, no WebGPU): a **18,689-byte gzip chunk** on the critical path,
13
+ * `WebGPUDevice.ts` at 74,438 bytes raw.
14
+ *
15
+ * ## Why a new entry rather than dropping the export
16
+ *
17
+ * `WebGPUDevice` is a documented public export and WS-2.8 requires low-level escape hatches to stay
18
+ * reachable — a developer writing a custom WebGPU path must still be able to construct one. So it
19
+ * moves to `@aura3d/engine/rendering/webgpu`, and the barrel keeps only the **type**, which erases at
20
+ * build time. Nothing is removed from the public surface; one import specifier changes, recorded in
21
+ * `MIGRATION-1.6.md`.
22
+ */
23
+ export { WebGPUDevice } from "./WebGPUDevice";
24
+ export type { WebGPUAdapterLike, WebGPUBufferDescriptorLike, WebGPUBufferLike, WebGPUDeviceLike, WebGPUDeviceOptions, WebGPULike, WebGPUQueueLike, WebGPUSamplerDescriptorLike } from "./WebGPUDevice";
25
+ //# sourceMappingURL=webgpu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webgpu.d.ts","sourceRoot":"","sources":["../../../../packages/rendering/src/webgpu.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EACV,iBAAiB,EACjB,0BAA0B,EAC1B,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,UAAU,EACV,eAAe,EACf,2BAA2B,EAC5B,MAAM,gBAAgB,CAAC"}
package/dist/webgpu.js ADDED
@@ -0,0 +1,24 @@
1
+ /**
2
+ * WS-2.2 — `WebGPUDevice` as its own entry point, so the barrel does not force it onto every bundle.
3
+ *
4
+ * ## The problem this solves
5
+ *
6
+ * `createRenderDevice` already loads the WebGPU device with `await import("./WebGPUDevice.js")`,
7
+ * deliberately, and says so: *"a statically imported branch is retained by bundlers even when the
8
+ * caller only ever asks for `webgl2`"*. That care was being undone one file away, because
9
+ * `packages/rendering/src/index.ts` re-exported `WebGPUDevice` as a **value**. A value re-export is a
10
+ * static edge, so every consumer of the barrel pulled in the device regardless.
11
+ *
12
+ * Measured on scenario 1 (one cube, no WebGPU): a **18,689-byte gzip chunk** on the critical path,
13
+ * `WebGPUDevice.ts` at 74,438 bytes raw.
14
+ *
15
+ * ## Why a new entry rather than dropping the export
16
+ *
17
+ * `WebGPUDevice` is a documented public export and WS-2.8 requires low-level escape hatches to stay
18
+ * reachable — a developer writing a custom WebGPU path must still be able to construct one. So it
19
+ * moves to `@aura3d/engine/rendering/webgpu`, and the barrel keeps only the **type**, which erases at
20
+ * build time. Nothing is removed from the public surface; one import specifier changes, recorded in
21
+ * `MIGRATION-1.6.md`.
22
+ */
23
+ export { WebGPUDevice } from "./WebGPUDevice.js";
24
+ //# sourceMappingURL=webgpu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webgpu.js","sourceRoot":"","sources":["../../../../packages/rendering/src/webgpu.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
package/package.json CHANGED
@@ -1,18 +1,26 @@
1
1
  {
2
2
  "name": "@aura3d/rendering",
3
- "version": "1.5.2",
3
+ "version": "2.0.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./dist/index.d.ts",
8
8
  "import": "./dist/index.js"
9
+ },
10
+ "./lean-runtime": {
11
+ "types": "./dist/lean-runtime.d.ts",
12
+ "import": "./dist/lean-runtime.js"
13
+ },
14
+ "./webgpu": {
15
+ "types": "./dist/webgpu.d.ts",
16
+ "import": "./dist/webgpu.js"
9
17
  }
10
18
  },
11
19
  "main": "./dist/index.js",
12
20
  "types": "./dist/index.d.ts",
13
21
  "dependencies": {
14
- "@aura3d/math": "1.5.2",
15
- "@aura3d/scene": "1.5.2"
22
+ "@aura3d/math": "2.0.0",
23
+ "@aura3d/scene": "2.0.0"
16
24
  },
17
25
  "sideEffects": false,
18
26
  "description": "Render-device abstraction, WebGL2/mock backends, buffers, textures, shader modules, materials, render graphs, lighting, shadows, and particle rendering for Aura3D.",