ugly-game 0.5.10 → 0.5.11

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/gpuShadow.js CHANGED
@@ -264,7 +264,9 @@ fn blockShade(fx: f32, fz: f32) -> f32 {
264
264
  let texc = textureSampleLevel(atlasTex, atlasSamp, uv, 0.0).rgb; // explicit LOD (early-return above makes control flow non-uniform)
265
265
  base = mix(texc, texc * cam.tint.rgb, cam.tint.w); // per-planet tint
266
266
  }
267
- let ao = blockShade(fx, fz);
267
+ // per-block edge AO makes each voxel visible on FLAT-hue cubes, but reads as a hard GRID over textures — so the
268
+ // atlas path uses a soft, mostly-flat AO (texture already supplies surface detail) instead of the strong grid.
269
+ let ao = select(blockShade(fx, fz), mix(blockShade(fx, fz), 1.0, 0.8), cam.atlas.x > 0.5 && i.tile >= 0.0);
268
270
  let lit = base * (cam.sun.w + cam.sunCol.xyz * ndl * sh) * ao;
269
271
  return vec4(pow(clamp(lit, vec3(0.0), vec3(1.0)), vec3(0.4545)), 1.0); // gamma
270
272
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugly-game",
3
- "version": "0.5.10",
3
+ "version": "0.5.11",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {