Repository navigation
Midnight Ops preview: move to the newest three.js (r187), same look - #302
Merged
Merged
Conversation
…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
👷 Deploy request for ascoding11 pending review.Visit the deploys page to approve it
|
👷 Deploy request for cosmic-dasik-e73c56 pending review.Visit the deploys page to approve it
|
…-r187 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DfCR7RPoK1UNAvb7iRuPWn
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.