sandbox_scene: downsample sRGB albedo in linear light #2443

Open
github-bot wants to merge 1 commit from github-bot/gh-2443 into main AGit
Owner

@⁠kirigayakazima on GitHub · 2026-11-27 10:16 UTC · original
kirigayakazima:codex/sandbox-scene-srgb-albedo → main · +22 −6 · 3 files · 1 commits · open

Claimed in the coordination issue as: SANDBOX-SCENE-SRGB-ALBEDO

What and why

The scene packer discarded the DDS color-space tag before filtering albedo. Allow the existing RGBA decoder to take a size limit and pass the decoded color space to the existing filter. A two-by-two black-and-white synthetic texture now averages to 188 for sRGB and 128 for linear UNORM. Both variants are checked against packed scene bytes.

Tested

Windows, Python 3.14.7, synthetic fixtures.

  • python -I tests/test_sandbox_scene.py
  • python -I tests/test_dds_png.py
  • python -I tests/test_dds_png_dx10.py
  • Changed-path game-data scan and git diff --check passed.
  • Shared main baseline: 6,374 translator semantic tests passed across 500 files. The combined five-topic checkout passed 172 focused tests.

GPUs tested: N/A (CPU-only).

AI-assisted: Yes.

Checklist

  • Based on current main and merges cleanly with the tested base.
  • One topic.
  • No game data, keys or decryption.
  • Translator contract table: N/A.
**@⁠kirigayakazima** on GitHub · 2026-11-27 10:16 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2443) `kirigayakazima:codex/sandbox-scene-srgb-albedo` → `main` · +22 −6 · 3 files · 1 commits · open Claimed in the coordination issue as: [SANDBOX-SCENE-SRGB-ALBEDO](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608) ### What and why The scene packer discarded the DDS color-space tag before filtering albedo. Allow the existing RGBA decoder to take a size limit and pass the decoded color space to the existing filter. A two-by-two black-and-white synthetic texture now averages to 188 for sRGB and 128 for linear UNORM. Both variants are checked against packed scene bytes. ### Tested Windows, Python 3.14.7, synthetic fixtures. - `python -I tests/test_sandbox_scene.py` - `python -I tests/test_dds_png.py` - `python -I tests/test_dds_png_dx10.py` - Changed-path game-data scan and `git diff --check` passed. - Shared main baseline: 6,374 translator semantic tests passed across 500 files. The combined five-topic checkout passed 172 focused tests. GPUs tested: N/A (CPU-only). AI-assisted: Yes. ### Checklist - [x] Based on current main and merges cleanly with the tested base. - [x] One topic. - [x] No game data, keys or decryption. - Translator contract table: N/A.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 10:34:43 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2443/head:github-bot/gh-2443'
git switch 'github-bot/gh-2443'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2443'
git switch 'github-bot/gh-2443'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2443'
git switch 'github-bot/gh-2443'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2443'
git switch 'main'
git merge --squash 'github-bot/gh-2443'
git switch 'main'
git merge --ff-only 'github-bot/gh-2443'
git switch 'main'
git merge 'github-bot/gh-2443'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.