ugly-game 0.15.1 → 0.15.2

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.
@@ -445,12 +445,16 @@ export class GpuPropsRenderer {
445
445
  },
446
446
  ],
447
447
  },
448
- // Depth TEST stays on — a crystal behind a hill is still behind the hill. Depth WRITE goes:
449
- // otherwise the translucent surface occludes whatever is drawn after it, which is the whole
450
- // thing this exists to prevent.
448
+ // Depth TEST stays on — a crystal behind a hill is still behind the hill. Depth WRITE stays
449
+ // TOO: consumers may draw later passes (e.g. all-mine-sky's water) that depth-test against
450
+ // this buffer, and a translucent prop that writes no depth lets those passes composite OVER
451
+ // it even when the prop sits in front of them. With depth written, a nearer translucent prop
452
+ // occludes later passes correctly. The cost: overlapping translucent props no longer blend
453
+ // in submission order — the nearer one clips the farther. For the glassy species (ice
454
+ // crystals, tektite shards) that is the right trade.
451
455
  depthStencil: {
452
456
  format: 'depth24plus',
453
- depthWriteEnabled: false,
457
+ depthWriteEnabled: true,
454
458
  depthCompare: 'less',
455
459
  },
456
460
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugly-game",
3
- "version": "0.15.1",
3
+ "version": "0.15.2",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -15,6 +15,14 @@
15
15
  "files": [
16
16
  "dist"
17
17
  ],
18
+ "scripts": {
19
+ "preinstall": "npx only-allow pnpm",
20
+ "build": "tsc -p tsconfig.json && mkdir -p dist/assets/basis && cp src/assets/basis/basis_transcoder.js src/assets/basis/basis_transcoder.bin dist/assets/basis/",
21
+ "lint": "ugly-app lint",
22
+ "lint:fix": "ugly-app lint --fix",
23
+ "pretty": "prettier --write .",
24
+ "prepublishOnly": "pnpm run pretty && ugly-app lint && tsc -p tsconfig.json && mkdir -p dist/assets/basis && cp src/assets/basis/basis_transcoder.js src/assets/basis/basis_transcoder.bin dist/assets/basis/"
25
+ },
18
26
  "dependencies": {
19
27
  "meshoptimizer": "^1.2.0"
20
28
  },
@@ -27,12 +35,5 @@
27
35
  "@webgpu/types": "^0.1.40",
28
36
  "prettier": "^3.9.5",
29
37
  "ugly-app": "^0.1.841"
30
- },
31
- "scripts": {
32
- "preinstall": "npx only-allow pnpm",
33
- "build": "tsc -p tsconfig.json && mkdir -p dist/assets/basis && cp src/assets/basis/basis_transcoder.js src/assets/basis/basis_transcoder.bin dist/assets/basis/",
34
- "lint": "ugly-app lint",
35
- "lint:fix": "ugly-app lint --fix",
36
- "pretty": "prettier --write ."
37
38
  }
38
- }
39
+ }