Repository navigation
Add the sunbeam motes to the golden_line example - #350
Merged
Merged
Conversation
Ports golden-line's effects/motes.js: 2200 specks of dust in the camera coach, lit only where a shaft of sun reaches them through a window opening, drifting, winking, brighter toward the light and kept faint against the chair back facing the lens. One instanced additive draw after the steam, seen from the window seat only. TrainRenderer gains vehicleMatrix() and exports TRN_CAMERA_COACH. Checked against the page with the same film clock: the specks land on the same pixels and their energy agrees within 2%. gc, own and rc render byte-identical; Vulkan -debug is clean. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Ports golden-line's
src/effects/motes.js(MIT): the dust hanging in the sunbeams of the camera coach.core/golden_line_motes.ts: 2200 motes frommulberry32(99)exactly as the original, the sun and camera in the coach's own frame, the chair-back shield (aimShield) and visibility (window seat, sun up, out of tunnels).shaders/golden_line_motes.hlsl: drift, the window-opening beam test, pixel-size floor with coverage dimming, forward scatter, wink, near/far fades, chair-back shield; one instanced additive draw after the steam, depth tested, not written.TrainRenderer.vehicleMatrix()and an exportedTRN_CAMERA_COACH.Verification
-debugclean; the DX12/VK difference contains no motes.ctest -R golden_line: 6/6 passed.🤖 Generated with Claude Code