Skip to content

v1.0.2

Latest

Choose a tag to compare

@thebriangao thebriangao released this 13 Jun 21:07

Bug fixes.

  • Fixed ./pebble install failing to compile on Swift 6.2.x: smooth-lighting arithmetic in Mesher.swift (and a few other spots) overran the Swift type-checker and tripped Int-vs-Double inference, breaking the build partway through install. Broken into single-operation typed locals — Pebble now builds on every Swift 6.0–6.3 toolchain; worldgen and mesh output are unchanged. This completes the #1 fix that 1.0.1 only partially addressed. (Fixes #1)
  • Fixed over-dark pits, holes and undersides: smooth lighting averaged in the zero skylight of solid neighbours, so a freshly-dug hole looked nearly black in daylight. Opaque neighbours now contribute the face light (standard vanilla smooth lighting); ambient occlusion still shades the corners.
  • ./pebble install now checks your Swift version up front (needs 6.0+) and offers to install a current toolchain for you if you're below it, instead of failing partway through a build.

Update: cd pebble && git pull && ./pebble install