Repository navigation
docs(first-light): distinguish the UV shaders from the authored material - #3350
jeremygold02 wants to merge 2 commits into
Conversation
|
Read 88c1a9b on Windows 11 (Python 3.13.7): pass for what the repository can confirm
Not verified (needs the game): that |
|
Code read of 88c1a9b: the reframing is the right call and the manifest fields it names exist; it leaves three places saying the opposite.
Ran at this commit (Windows 11, AI-assisted code read (Claude). No game data used. |
|
Code read of 3302d4e:
AI-assisted review (Claude Code); no approval or change request. |
|
Thanks for catching the I ran both modes on the same 4,213-vertex mesh with no shader overrides. The vertex module and mesh bytes matched, the selected pixel modules differed, and the four-color test texture changed all 12,804 covered pixels. The 3,580 background pixels remained identical. With the local fixture and harness enabled, 52 focused tests and 18 subtests passed. I also checked one limitation of the fixture. Two synthetic BC1 DDS inputs with identical midtone blocks and different DXGI tags (71 and 72) produced byte-identical images. In a separate diagnostic build, changing the sampled Vulkan image and view to sRGB moved the red sample from 0.517578 to 0.230469 at every covered pixel. The shipped harness currently creates a UNORM view in both cases. These runs establish the fixture's sampling behavior. The game's choice of image view and material for this draw remains open. Intel Core Ultra 7 265K and NVIDIA GeForce RTX 5070 (621.01, subgroup 32), Windows 11 Home 25H2 build 26200.9974, Python 3.12.10. AI-assisted by Codex. |
|
Reviewed and tested
Review: Read the three changed files at the head, which sits on current main (
AI-assisted (Claude Code); I checked the results. |
|
Tested 3b598a9 on Linux 6.12.113+, Python 3.12.3 (no GPU, no game data): pass, one wording fix. Ran: The new title, status paragraph and index row cover both modes. Section 6 is the textured recipe.
|
|
Tested |
|
Tested 0e960fe merged with main 98fa503 on Linux (Python 3.12.16): pass. test_first_light.py, test_first_light_bad_json.py, test_first_light_harness_paths.py, test_first_light_mesh_draw.py and 1 more; the four tests/test_docs_*.py 9/9 ok. Negative control with main's |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> # Conflicts: # docs/README.md
|
Tested This PR changes no test file, so I ran the test files that use the changed modules.
No game files. AI-assisted (Claude Code). |
isfcrctfs
left a comment
There was a problem hiding this comment.
Read 4c6ea0cc on Linux (CPython 3.12.16): the docstring matches the code.
DEFAULT_VS does forward clip-space POSITION/TEXCOORD (tools/first_light.py:55), --camera selects CAMERA_VS (:977), and with --dds the default pixel shader is DEFAULT_TEXTURED_PS = PS_Copy_3ea4b38a_Wrapped (:1009). Dropping "its own translated VS/PS" from the docs/README.md row also removes the one claim that contradicted section 1 of docs/first_light.md (the chosen pair is two ordinary containers, not the model's authored assignment).
On the docs guards: test_docs_table_rows, test_docs_table_ids, test_docs_repeated_lines, test_docs_repo_paths, test_docs_list_items and the other test_docs_* pass. test_docs_cli_flags and test_docs_links fail identically at the PR base dde82f27 and at 8575d36e (the --ssa-rewrite in docs/embedded_shaders.md is a spirv-opt flag, and the docs/dev-tools.md anchor), so they are pre-existing and not caused by this change.
One nit: PS_Copy alone is not a name choose() accepts (:148-157 matches the exact carve-index name), so say PS_Copy_3ea4b38a_Wrapped as docs/first_light.md:126 does, or write "the PS_Copy shader".
AI-assisted.
Coordination claim on #3232. The package-local effect lookup landed in #3036.
The default first-light fixture draws a model from the package with two translated game shaders. The old title and opening could be read to mean that the model's exported material selects this pair. The model and shaders reproduce exactly, and the material assignment tells a different part of the story.
Evidence
The guide, index and CLI help now describe both defaults. The untextured draw displays model UVs. With
--dds, the default pixel shader samples the supplied texture. The guide also links directly to the merged effect lookup tool. Gameplay use of the reference model remains open.At
3b598a9b, I rebuilt the native Vulkan harness and ran both modes with the documented mesh, no shader overrides, and a synthetic four-color 2×2 DDS for the textured case. The mesh and vertex program were byte-identical. The manifests selected different pixel programs. Both images had the same 12,804 covered pixels out of 16,384, and the RGBA values changed on all 12,804. Both modes passed the tool's image checks. With the local fixture and harness enabled, 52 focused tests and 18 subtests passed. The NVIDIA device reported subgroup size 32.AI-assisted by Codex. Package checks used an Intel Core Ultra 7 265K. The Vulkan draws used an NVIDIA GeForce RTX 5070 (621.01), Windows 11 Home 25H2 build 26200.9974, Python 3.12.10. Integrated Intel Graphics (32.0.101.9150) was also installed.