Addon: [1.9.15] Use full 24-bit range for position encoding#794
Merged
Conversation
Replace the generic float encoding (6% of 24-bit range) with a dedicated fixed24 encoder that uses the full 0-16777215 range for normalized 0-1 position coordinates, improving world precision from ~0.005 to ~0.0003 yards. Also rename float/GetFixed to fixed20/GetFixed20 for consistency with the new fixed24/GetFixed24 naming convention. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.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.
Summary
fixed24encoding function that uses the full 24-bit RGB range (0–16,777,215) for normalized 0–1 position coordinates, replacing the genericfloatencoding that only used ~6% of the rangefloat/GetFixedtofixed20/GetFixed20for consistency with the newfixed24/GetFixed24naming conventionTest plan
dotnet build MasterOfPuppets.slnpasses with 0 errors🤖 Generated with Claude Code