Skip to content

Create the block atlas through CreateTexture - #96

Merged
CanReader merged 4 commits into
Advanced-Shadersfrom
feat/texture-mips
Nov 8, 2026
Merged

CanReader merged 4 commits into
Advanced-Shadersfrom
feat/texture-mips

Conversation

@CanReader

Copy link
Copy Markdown
Owner

Groundwork for the atlas quality work (CPU-built mips with dilated colour and coverage-preserving leaf alpha).

  • The block atlas is created with Sleak::CreateTexture (still UNORM, 7 mip levels, GPU-built mips for now) instead of UI::CreateTextureFromPixels.
  • Blocks and water now share one atlas instead of building it twice.
  • Removes block_atlas.png and generate_atlas.py. The fallback that used them could not work: its layout does not match TextureAtlas::GetTileUV, so it drew the wrong tiles.

Vulkan captures of the four fixed views on seed 4242 are byte-identical to before. On OpenGL the far ground changes slightly: GL now keeps the 7-level mip cap, where it used to build 11 levels whose smallest ones mixed neighbouring tiles. That turns greyish tile mixes on distant grazing terraces back into grass colour.

The Engine pin moves to the merge of the engine PR once that lands.

@CanReader
CanReader merged commit b65950a into Advanced-Shaders Nov 8, 2026
8 checks passed
@CanReader
CanReader deleted the feat/texture-mips branch November 8, 2026 23:51
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