Skip to content

Examples: Improve fog scattering trees and performance. - #34491

Merged
mrdoob merged 2 commits into
devfrom
codex/improve-fog-scattering-trees
Sep 7, 2026
Merged

mrdoob merged 2 commits into
devfrom
codex/improve-fog-scattering-trees

Conversation

@mrdoob

@mrdoob mrdoob commented Sep 7, 2026 •

Copy link
Copy Markdown
Owner

Improves webgpu_custom_fog_scattering with more natural tree shapes and bark lighting.

TreeGenerator builds indexed geometry directly (78% fewer vertices in this example), and the camera far plane follows fog density to clip distant geometry.

Before After
Before After

Validated with ESLint, geometry comparisons, and WebGPU/WebGL screenshot checks.

@mrdoob mrdoob added this to the r186 milestone Sep 7, 2026
@mrdoob
mrdoob force-pushed the codex/improve-fog-scattering-trees branch from 9172424 to e88cd9c Compare September 7, 2026 00:49
@mrdoob
mrdoob merged commit f81b9d7 into dev Sep 7, 2026
9 checks passed
@mrdoob
mrdoob deleted the codex/improve-fog-scattering-trees branch September 7, 2026 01:31
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.

1 participant