Skip to content

Midnight Ops preview: move to the newest three.js (r187), same look - #302

Merged
ASCoding11 merged 5 commits into
ASCoding11:mainfrom
ngcoding10:war-r187
Nov 24, 2026
Merged

ASCoding11 merged 5 commits into
ASCoding11:mainfrom
ngcoding10:war-r187

Conversation

@ngcoding10

Copy link
Copy Markdown
Collaborator

No description provided.

…dit to it

- index.html, env-test.html, chars-test.html load /lib/three/r187/three.min.js (+ three-addons.min.js
  for GLTFLoader and SkeletonUtils); the r128 loader copies in assets/lib/ are retired.
- IVEnv.patch (env/core.js): one helper every onBeforeCompile edit goes through; it logs a console
  error naming the site when the text it searches for is not in the shader.
- Each edit ported to r187's chunks: vUv -> vMapUv / vNormalMapUv, perturbNormal2Arb -> r128's
  maths as ivPerturbNormal2Arb, mapTexelToLinear/sRGBToLinear dropped where three now decodes
  the sRGB texture, geometry.normal/viewDir -> geometryNormal/ViewDir, output_fragment ->
  opaque_fragment, the extra PI on leaf and blade translucency dropped (compat puts it in the light).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DfCR7RPoK1UNAvb7iRuPWn
…s r128 drew it

- env/grass.js: the blade and seed-head geometries carry an unused normal attribute. r187 builds a
  flat-shaded program (no vNormal) for geometry without one, so every blade shader failed to compile
  and the grass was missing.
- env/atmosphere.js (+ one line in js/fp.js): the sky cube and the arms' cube are used as they are
  (flagged as PMREM so r187 does not filter them) and envmap_physical_pars_fragment gets r128's
  lookups back: reflections from a mip chosen by roughness, no diffuse light from a plain cube.
  r187 added that diffuse light, which doubled the environment light indoors (23 -> 45 of 255 in
  the Boot Camp hut); now 23.3 against r128's 22.9.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DfCR7RPoK1UNAvb7iRuPWn
…filtering as on r128

- chars.js: the first-person body cut copied meshopt-quantized positions through getX, which r187
  denormalises, so they were stored as 0 and the player's legs and body collapsed to a line; it
  now copies the raw values (attrComp and the cap normals no longer scale a second time either).
  chars-test.html's hand check likewise.
- env/ground.js: the wet map and the marks texture change size after their first upload; r187
  keeps a texture's first allocation, so they dispose() on a resize (High showed lane-wide water).
- env/nature.js: leaf and impostor cards cut at alphaTest with alpha-to-coverage as r128 did
  (r187 sharpens alpha over fwidth, which thinned distant hedges).
- env/core.js, ground.js, builder.js: the generated sRGB albedo textures stay raw and the shaders
  decode them after filtering (r128's order; r187's sRGB format lightened distant ground and walls).
- README Midnight Ops paragraph and lib/three/README: the r187 move and what it undoes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DfCR7RPoK1UNAvb7iRuPWn
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DfCR7RPoK1UNAvb7iRuPWn
@netlify

netlify Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

👷 Deploy request for ascoding11 pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 5776288

@netlify

netlify Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

👷 Deploy request for cosmic-dasik-e73c56 pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 5776288

@ASCoding11
ASCoding11 merged commit 7493a66 into ASCoding11:main Nov 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants