@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.
- package/README.md +8 -2
- package/dist/ArchitecturalLighting.d.ts +35 -0
- package/dist/ArchitecturalLighting.d.ts.map +1 -0
- package/dist/ArchitecturalLighting.js +162 -0
- package/dist/ArchitecturalLighting.js.map +1 -0
- package/dist/ArchitecturalMaterialCatalog.d.ts +1 -1
- package/dist/ArchitecturalMaterialCatalog.d.ts.map +1 -1
- package/dist/ArchitecturalMaterialCatalog.js +1 -1
- package/dist/ArchitecturalMaterialCatalog.js.map +1 -1
- package/dist/ArchitecturalMeasurement.d.ts +27 -0
- package/dist/ArchitecturalMeasurement.d.ts.map +1 -0
- package/dist/ArchitecturalMeasurement.js +112 -0
- package/dist/ArchitecturalMeasurement.js.map +1 -0
- package/dist/CanonicalProductScene.d.ts +13 -0
- package/dist/CanonicalProductScene.d.ts.map +1 -0
- package/dist/CanonicalProductScene.js +78 -0
- package/dist/CanonicalProductScene.js.map +1 -0
- package/dist/CascadedShadowMaps.d.ts +1 -1
- package/dist/CascadedShadowMaps.d.ts.map +1 -1
- package/dist/CascadedShadowMaps.js +1 -1
- package/dist/CascadedShadowMaps.js.map +1 -1
- package/dist/DepthPass.d.ts +1 -1
- package/dist/DepthPass.d.ts.map +1 -1
- package/dist/DepthPass.js +2 -2
- package/dist/DepthPass.js.map +1 -1
- package/dist/EnvironmentBackgroundPass.d.ts +1 -1
- package/dist/EnvironmentBackgroundPass.d.ts.map +1 -1
- package/dist/EnvironmentBackgroundPass.js +2 -2
- package/dist/EnvironmentBackgroundPass.js.map +1 -1
- package/dist/EnvironmentPlatform.js +2 -2
- package/dist/EnvironmentPlatform.js.map +1 -1
- package/dist/ForwardPass.d.ts +1 -1
- package/dist/ForwardPass.d.ts.map +1 -1
- package/dist/ForwardPass.js +24 -10
- package/dist/ForwardPass.js.map +1 -1
- package/dist/Geometry.d.ts +2 -0
- package/dist/Geometry.d.ts.map +1 -1
- package/dist/Geometry.js +15 -0
- package/dist/Geometry.js.map +1 -1
- package/dist/InstancedPBRMaterial.js +1 -1
- package/dist/InstancedPBRMaterial.js.map +1 -1
- package/dist/InstancedUnlitMaterial.js +1 -1
- package/dist/InstancedUnlitMaterial.js.map +1 -1
- package/dist/Material.js +2 -2
- package/dist/Material.js.map +1 -1
- package/dist/MaterialBinding.js +4 -4
- package/dist/MaterialBinding.js.map +1 -1
- package/dist/MaterialInstance.js +2 -2
- package/dist/MaterialInstance.js.map +1 -1
- package/dist/MorphUnlitMaterial.js +1 -1
- package/dist/MorphUnlitMaterial.js.map +1 -1
- package/dist/NormalMappedPBRMaterial.js +1 -1
- package/dist/NormalMappedPBRMaterial.js.map +1 -1
- package/dist/OceanSurface.d.ts +62 -0
- package/dist/OceanSurface.d.ts.map +1 -0
- package/dist/OceanSurface.js +240 -0
- package/dist/OceanSurface.js.map +1 -0
- package/dist/PBRMaterial.d.ts.map +1 -1
- package/dist/PBRMaterial.js +3 -3
- package/dist/PBRMaterial.js.map +1 -1
- package/dist/PortableShaderMaterial.d.ts +60 -0
- package/dist/PortableShaderMaterial.d.ts.map +1 -0
- package/dist/PortableShaderMaterial.js +223 -0
- package/dist/PortableShaderMaterial.js.map +1 -0
- package/dist/PostProcessPass.d.ts.map +1 -1
- package/dist/PostProcessPass.js +30 -6
- package/dist/PostProcessPass.js.map +1 -1
- package/dist/ProceduralTexture.d.ts +27 -0
- package/dist/ProceduralTexture.d.ts.map +1 -0
- package/dist/ProceduralTexture.js +336 -0
- package/dist/ProceduralTexture.js.map +1 -0
- package/dist/ProductTurntable.d.ts +96 -0
- package/dist/ProductTurntable.d.ts.map +1 -0
- package/dist/ProductTurntable.js +639 -0
- package/dist/ProductTurntable.js.map +1 -0
- package/dist/RenderDevice.d.ts +30 -0
- package/dist/RenderDevice.d.ts.map +1 -1
- package/dist/RenderDevice.js.map +1 -1
- package/dist/Renderer.d.ts +3 -2
- package/dist/Renderer.d.ts.map +1 -1
- package/dist/Renderer.js +23 -9
- package/dist/Renderer.js.map +1 -1
- package/dist/RendererPostprocessPlan.js +4 -4
- package/dist/RendererPostprocessPlan.js.map +1 -1
- package/dist/ScreenSpaceLineMaterial.js +1 -1
- package/dist/ScreenSpaceLineMaterial.js.map +1 -1
- package/dist/ShaderChunks.d.ts.map +1 -1
- package/dist/ShaderChunks.js +81 -19
- package/dist/ShaderChunks.js.map +1 -1
- package/dist/ShaderLibrary.d.ts +2 -78
- package/dist/ShaderLibrary.d.ts.map +1 -1
- package/dist/ShaderLibrary.js +127 -793
- package/dist/ShaderLibrary.js.map +1 -1
- package/dist/ShaderLibraryCore.d.ts +100 -0
- package/dist/ShaderLibraryCore.d.ts.map +1 -0
- package/dist/ShaderLibraryCore.js +800 -0
- package/dist/ShaderLibraryCore.js.map +1 -0
- package/dist/ShaderModule.d.ts +1 -1
- package/dist/ShaderModule.d.ts.map +1 -1
- package/dist/ShaderModule.js +4 -2
- package/dist/ShaderModule.js.map +1 -1
- package/dist/ShadowPass.d.ts +1 -1
- package/dist/ShadowPass.d.ts.map +1 -1
- package/dist/ShadowPass.js +6 -4
- package/dist/ShadowPass.js.map +1 -1
- package/dist/SkinnedLitMaterial.js +1 -1
- package/dist/SkinnedLitMaterial.js.map +1 -1
- package/dist/SkinnedUnlitMaterial.js +1 -1
- package/dist/SkinnedUnlitMaterial.js.map +1 -1
- package/dist/SpaceEnvironment.d.ts +54 -0
- package/dist/SpaceEnvironment.d.ts.map +1 -0
- package/dist/SpaceEnvironment.js +116 -0
- package/dist/SpaceEnvironment.js.map +1 -0
- package/dist/TerrainHeightfield.d.ts +60 -0
- package/dist/TerrainHeightfield.d.ts.map +1 -0
- package/dist/TerrainHeightfield.js +239 -0
- package/dist/TerrainHeightfield.js.map +1 -0
- package/dist/TextureBinding.d.ts +14 -0
- package/dist/TextureBinding.d.ts.map +1 -1
- package/dist/TextureBinding.js +17 -0
- package/dist/TextureBinding.js.map +1 -1
- package/dist/TexturedPBRMaterial.js +1 -1
- package/dist/TexturedPBRMaterial.js.map +1 -1
- package/dist/TexturedUnlitMaterial.js +1 -1
- package/dist/TexturedUnlitMaterial.js.map +1 -1
- package/dist/UnlitMaterial.js +1 -1
- package/dist/UnlitMaterial.js.map +1 -1
- package/dist/VegetationFixtures.d.ts +1 -1
- package/dist/VegetationFixtures.d.ts.map +1 -1
- package/dist/VegetationFixtures.js +1 -1
- package/dist/VegetationFixtures.js.map +1 -1
- package/dist/VegetationScatter.d.ts +68 -0
- package/dist/VegetationScatter.d.ts.map +1 -0
- package/dist/VegetationScatter.js +241 -0
- package/dist/VegetationScatter.js.map +1 -0
- package/dist/VoxelWorld.d.ts +51 -0
- package/dist/VoxelWorld.d.ts.map +1 -0
- package/dist/VoxelWorld.js +183 -0
- package/dist/VoxelWorld.js.map +1 -0
- package/dist/Weather.d.ts +44 -0
- package/dist/Weather.d.ts.map +1 -0
- package/dist/Weather.js +140 -0
- package/dist/Weather.js.map +1 -0
- package/dist/WebGL2Device.d.ts +22 -0
- package/dist/WebGL2Device.d.ts.map +1 -1
- package/dist/WebGL2Device.js +134 -23
- package/dist/WebGL2Device.js.map +1 -1
- package/dist/WebGPUDevice.d.ts +19 -2
- package/dist/WebGPUDevice.d.ts.map +1 -1
- package/dist/WebGPUDevice.js +188 -9
- package/dist/WebGPUDevice.js.map +1 -1
- package/dist/index.d.ts +25 -32
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +35 -19
- package/dist/index.js.map +1 -1
- package/dist/lean/LeanProductRenderer.d.ts +29 -0
- package/dist/lean/LeanProductRenderer.d.ts.map +1 -0
- package/dist/lean/LeanProductRenderer.js +38 -0
- package/dist/lean/LeanProductRenderer.js.map +1 -0
- package/dist/lean/LeanProductionRenderer.d.ts +38 -0
- package/dist/lean/LeanProductionRenderer.d.ts.map +1 -0
- package/dist/lean/LeanProductionRenderer.js +88 -0
- package/dist/lean/LeanProductionRenderer.js.map +1 -0
- package/dist/lean-runtime.d.ts +18 -0
- package/dist/lean-runtime.d.ts.map +1 -0
- package/dist/lean-runtime.js +13 -0
- package/dist/lean-runtime.js.map +1 -0
- package/dist/postprocess/EffectComposer.d.ts.map +1 -1
- package/dist/postprocess/EffectComposer.js +1 -3
- package/dist/postprocess/EffectComposer.js.map +1 -1
- package/dist/production-runtime/PBRHDRPipeline.d.ts.map +1 -1
- package/dist/production-runtime/PBRHDRPipeline.js +5 -1
- package/dist/production-runtime/PBRHDRPipeline.js.map +1 -1
- package/dist/production-runtime/ProductionRendererTypes.d.ts +9 -0
- package/dist/production-runtime/ProductionRendererTypes.d.ts.map +1 -1
- package/dist/production-runtime/ProductionRendererTypes.js.map +1 -1
- package/dist/production-runtime/ProductionRuntimeRenderer.d.ts +5 -0
- package/dist/production-runtime/ProductionRuntimeRenderer.d.ts.map +1 -1
- package/dist/production-runtime/ProductionRuntimeRenderer.js +53 -5
- package/dist/production-runtime/ProductionRuntimeRenderer.js.map +1 -1
- package/dist/production-runtime/ProductionWebGL2Renderer.d.ts +10 -0
- package/dist/production-runtime/ProductionWebGL2Renderer.d.ts.map +1 -1
- package/dist/production-runtime/ProductionWebGL2Renderer.js +21 -2
- package/dist/production-runtime/ProductionWebGL2Renderer.js.map +1 -1
- package/dist/production-runtime/ProductionWebGPURenderer.d.ts.map +1 -1
- package/dist/production-runtime/ProductionWebGPURenderer.js +4 -1
- package/dist/production-runtime/ProductionWebGPURenderer.js.map +1 -1
- package/dist/webgpu-device-entry.d.ts +25 -0
- package/dist/webgpu-device-entry.d.ts.map +1 -0
- package/dist/webgpu-device-entry.js +24 -0
- package/dist/webgpu-device-entry.js.map +1 -0
- package/dist/webgpu.d.ts +25 -0
- package/dist/webgpu.d.ts.map +1 -0
- package/dist/webgpu.js +24 -0
- package/dist/webgpu.js.map +1 -0
- 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"}
|
package/dist/webgpu.d.ts
ADDED
|
@@ -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": "
|
|
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": "
|
|
15
|
-
"@aura3d/scene": "
|
|
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.",
|