@driftengine/core 4.0.0 → 4.1.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.
- package/CHANGELOG.json +324 -297
- package/dist/index.d.ts +1 -1
- package/dist/index.js +9 -1
- package/package.json +6 -6
- package/src/index.ts +8 -0
package/dist/index.d.ts
CHANGED
|
@@ -73,7 +73,7 @@ export { OcclusionBuffer } from './render/occlusion.ts';
|
|
|
73
73
|
export type { ComputeContext, ComputeDefinition, ComputeDevice, ComputeHandle, } from './render/compute.ts';
|
|
74
74
|
export { createRenderer } from './render/backend/createRenderer.ts';
|
|
75
75
|
export type { CreatedRenderer, CreateRendererOptions, RenderPipeline, } from './render/backend/createRenderer.ts';
|
|
76
|
-
export { GPU_DRIVEN_LISTS, GpuDrivenPass, MATERIAL_FLOATS, } from './render/backend/webgpu/gpuDrivenPass.ts';
|
|
76
|
+
export { GPU_DRIVEN_LISTS, GpuDrivenPass, MATERIAL_FLOATS, VERTEX_FLOATS, } from './render/backend/webgpu/gpuDrivenPass.ts';
|
|
77
77
|
export type { GpuDrivenList, GpuDrivenMaterial, GpuDrivenShadowOptions, GpuDrivenView, } from './render/backend/webgpu/gpuDrivenPass.ts';
|
|
78
78
|
export { atmosphereFog, createFogTarget } from './render/fog.ts';
|
|
79
79
|
export type { FogOptions, FogTarget } from './render/fog.ts';
|
package/dist/index.js
CHANGED
|
@@ -105,7 +105,15 @@ export { createRenderer } from './render/backend/createRenderer.js';
|
|
|
105
105
|
* It draws vertex colour, one directional term, a hemispheric ambient and an emissive add — not
|
|
106
106
|
* the standard material. `DRAFT_SCENES`, never `SCENES`, until it draws the six published ones.
|
|
107
107
|
*/
|
|
108
|
-
export { GPU_DRIVEN_LISTS, GpuDrivenPass, MATERIAL_FLOATS,
|
|
108
|
+
export { GPU_DRIVEN_LISTS, GpuDrivenPass, MATERIAL_FLOATS,
|
|
109
|
+
/*
|
|
110
|
+
* **The vertex stride, because a consumer sizing a streaming scene has to know it.** A
|
|
111
|
+
* `StreamCapacity` is counts, and what a device refuses is bytes: the pipeline binds the whole
|
|
112
|
+
* vertex buffer as one storage binding, so whether a capacity fits is `vertices * VERTEX_FLOATS
|
|
113
|
+
* * 4` against `maxStorageBufferBindingSize`. Without this a consumer either hard-codes 48 or
|
|
114
|
+
* finds out by being refused, and the published city scene did the second on every phone.
|
|
115
|
+
*/
|
|
116
|
+
VERTEX_FLOATS, } from './render/backend/webgpu/gpuDrivenPass.js';
|
|
109
117
|
/*
|
|
110
118
|
* **One environment, one haze, on both pipelines.** `GpuDrivenView.fog` is the medium the forward
|
|
111
119
|
* path binds, and a consumer drawing both in one frame fills it from `atmosphereFog` rather than
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@driftengine/core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.1",
|
|
4
4
|
"description": "DriftEngine reusable browser 3D runtime",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
],
|
|
30
30
|
"sideEffects": false,
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@driftengine/drft": "4.
|
|
33
|
-
"@driftengine/physics": "4.
|
|
32
|
+
"@driftengine/drft": "4.1.1",
|
|
33
|
+
"@driftengine/physics": "4.1.1",
|
|
34
34
|
"gl-matrix": "^3.4.3"
|
|
35
35
|
},
|
|
36
36
|
"author": "Drift Technologies",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"prepack": "node ../../scripts/build.mjs @driftengine/core"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@driftengine/nav": "4.
|
|
67
|
-
"@driftengine/network": "4.
|
|
68
|
-
"@driftengine/texture": "4.
|
|
66
|
+
"@driftengine/nav": "4.1.1",
|
|
67
|
+
"@driftengine/network": "4.1.1",
|
|
68
|
+
"@driftengine/texture": "4.1.1"
|
|
69
69
|
}
|
|
70
70
|
}
|
package/src/index.ts
CHANGED
|
@@ -238,6 +238,14 @@ export {
|
|
|
238
238
|
GPU_DRIVEN_LISTS,
|
|
239
239
|
GpuDrivenPass,
|
|
240
240
|
MATERIAL_FLOATS,
|
|
241
|
+
/*
|
|
242
|
+
* **The vertex stride, because a consumer sizing a streaming scene has to know it.** A
|
|
243
|
+
* `StreamCapacity` is counts, and what a device refuses is bytes: the pipeline binds the whole
|
|
244
|
+
* vertex buffer as one storage binding, so whether a capacity fits is `vertices * VERTEX_FLOATS
|
|
245
|
+
* * 4` against `maxStorageBufferBindingSize`. Without this a consumer either hard-codes 48 or
|
|
246
|
+
* finds out by being refused, and the published city scene did the second on every phone.
|
|
247
|
+
*/
|
|
248
|
+
VERTEX_FLOATS,
|
|
241
249
|
} from './render/backend/webgpu/gpuDrivenPass.ts';
|
|
242
250
|
export type {
|
|
243
251
|
GpuDrivenList,
|