Repository navigation
deadlock: fix Brighter lighting magenta shading and KV3 v5 zero-blob trailer - #308
Merged
Merged
Conversation
… KV3 v5 blob trailer
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.
What broke
Enabling Performance → Performance mods → Brighter lighting turned Deadlock's 3D scene black and magenta while leaving 2D HUD elements normal.
Why
patch_brighter_vpost_bytesclearedm_nColorCorrectionVolumeDimto0andm_colorCorrectionVolumeDatato an empty blob (0bytes). Stock Deadlock.vpost_cfiles always carry a full 32×32×32 (131,072-byte) RGBA identity LUT even whenm_bHasColorCorrectionisfalse; without a valid 3D LUT blob, Source 2 falls back to the black-and-magenta error texture in the post-processing pass.encode_kv3_v5only appended the trailing0xFFEEDD00blob-section end marker whenblobs_bytes > 0, omitting it whencount_blobs > 0with a 0-byte blob.patch_brighter_vpost_bytesalso unconditionally addedm_bHasLocalExposureParams/m_bHasFogScatteringParamsto older KV3 v4.vpost_cfiles that do not define them.What changed
identity_color_correction_lut_32, 131,072 bytes) withm_nColorCorrectionVolumeDim = 32andm_bHasColorCorrection = falseinpatch_brighter_vpost_bytes, and only setm_bHasLocalExposureParams/m_bHasFogScatteringParamswhen present in the stock resource.KV3_END_MARKERafter the blob section inencode_kv3_v5whenevercount_blobs > 0.DeadlockPerfModPack::BrighterLightingbuilder version from"1"to"2"and flag olderPerfModversions as stale inload_deadlock_profile_detail_with_steam_in/reconcile_perf_mod_vpksso existing profiles offer a one-click rebuild.CHANGELOG.mdentry.Checks
cargo fmt --all --checkcargo clippy --workspace --all-targets -- -D warningscargo test -p execs-core --lib --locked deadlock::(55/55 passing)EXECS_REAL_DEADLOCK_ROOT=... cargo test -p execs-core --lib --locked verifies_all_perf_vpks_against_live_deadlock_install_readonly -- --ignored(27/27 stock.vpost_cdecoded, all 5 packs built and verified)