feat(biome): Milestone 2 — Biome Colors + Mountains 10x Height#15
Merged
Conversation
- Mountains HeightMultiplier increased from 3.0 to 10.0 (user request) - Pass biomeId through per-chunk GPU uniform buffer - Fragment shader: solid color per biome with lighting preserved Grassland=green, Desert=tan, Mountains=grey, Valley=lt-green, Swamp=dark-olive, Forest=deep-green - UNIFORM_BUFFER_SIZE updated to accommodate biomeId float (128 → 144) All Go tests pass. All TS tests pass. Docker prod build verified. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- selector.go: remove pre-scaling of coords before FBm (was causing double scaling: effective coord was worldX * scale^2 = near-zero, producing flat noise and no biome variety). Now pass raw world coords; FBm handles freq. - Temperature now ranges ~0.0–1.0 giving full biome variety: mountains, desert, swamp, valley, forest all generate correctly - fragment shader: getHeightBlendedColor() blends biome base color toward grey rock (y>60) and snow (y>300) based on worldPos.y, so mountain peaks naturally go grey/white without hard chunk-boundary color edges - Added TestBiomeNoiseProvidesVariety: verifies temp range > 0.4 and at least 3 biome types appear in a 20k×20k scan Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.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.
Milestone 2: Biome Color Variety
Changes
Testing
Part of the 5-milestone biome system plan.