@plasius/gpu-world-generator 0.0.12 → 0.0.13
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/dist/index.cjs +0 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +0 -2
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
- package/src/tiles.ts +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plasius/gpu-world-generator",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"description": "GPU-assisted world generation with hex-grid terrain synthesis.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -38,15 +38,15 @@
|
|
|
38
38
|
"prepublishOnly": "npm run build && npm run pack:check"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@plasius/gpu-worker": "^0.1.
|
|
41
|
+
"@plasius/gpu-worker": "^0.1.11"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@eslint/js": "^
|
|
45
|
-
"@types/node": "^
|
|
46
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
47
|
-
"@typescript-eslint/parser": "^8.
|
|
48
|
-
"c8": "^
|
|
49
|
-
"eslint": "^
|
|
44
|
+
"@eslint/js": "^10.0.1",
|
|
45
|
+
"@types/node": "^24.12.0",
|
|
46
|
+
"@typescript-eslint/eslint-plugin": "^8.57.1",
|
|
47
|
+
"@typescript-eslint/parser": "^8.57.1",
|
|
48
|
+
"c8": "^11.0.0",
|
|
49
|
+
"eslint": "^10.1.0",
|
|
50
50
|
"globals": "^17.3.0",
|
|
51
51
|
"tsup": "^8.5.0",
|
|
52
52
|
"typescript": "^5.9.3"
|
package/src/tiles.ts
CHANGED
|
@@ -270,7 +270,6 @@ export function serializeTileAssetBinary(asset: TileAsset): ArrayBuffer {
|
|
|
270
270
|
view.setUint32(cursor, materialStride >>> 0, true);
|
|
271
271
|
cursor += 4;
|
|
272
272
|
view.setUint32(cursor, featureStride >>> 0, true);
|
|
273
|
-
cursor += 4;
|
|
274
273
|
|
|
275
274
|
let writeOffset = HEADER_BYTES;
|
|
276
275
|
new Float32Array(buffer, writeOffset, heightCount).set(asset.height);
|
|
@@ -351,7 +350,6 @@ export function parseTileAssetBinary(input: ArrayBuffer | ArrayBufferView): Tile
|
|
|
351
350
|
const materialStride = view.getUint32(cursor, true);
|
|
352
351
|
cursor += 4;
|
|
353
352
|
const featureStride = view.getUint32(cursor, true);
|
|
354
|
-
cursor += 4;
|
|
355
353
|
|
|
356
354
|
const heightBytes = heightCount * 4;
|
|
357
355
|
const fieldBytes = fieldCount * 4;
|