Repository navigation
Add the bloom to the golden_line example - #351
Merged
Merged
Conversation
Ports golden-line's render/pipeline.js glow, three.js r187's BloomNode: a half-size high pass above a linear threshold with each pixel's share capped, five levels blurred by a separable gaussian (bilinear taps, push constants), summed with the radius weighting into a half-size glow that the tone mapping adds before the exposure. setGlare follows the eye open in a bore (lower threshold, wider and stronger glow, capped pixels); the shots' own dazzle isn't ported. Checked against the page with on/off pairs taken in one prepared shot: the glow around the sun is pixel-identical and the tunnel-mouth glare 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 bloom (
render/pipeline.js, MIT), which is three.js r187'sBloomNode(MIT) with a capped high pass.core/golden_line_bloom.ts: half-size bright target and five RGBA16F levels (sizes as BloomNode'ssetSize), the gaussian kernels built as BloomNode builds them (bilinear tap pairs), passes driven by 128-byte push constants;setGlare(open, dazzle)as pipeline.js.shaders/golden_line_bloom.hlsl: high pass (luminance threshold + smooth width, per-pixel cap), separable blur, composite withlerpBloomFactor.color.add(glow)ahead of three's output tone mapping.open; 0 in the window seat). The shots' own dazzle comes with the camera shots, not ported yet.Verification
-debugclean, no glow offset vs DX12.ctest -R golden_line: 6/6 passed.🤖 Generated with Claude Code