[KK] Add TextureUtils.CorrectColorSpaceForKoikatu for KK UI textures - #113
Merged
ManlyMarco merged 2 commits intoJul 9, 2026
Merged
Conversation
KK (Unity 5.6, Linear) samples sRGB UI PNGs too dark. Add a public gamma-LUT fixer (KK-only, no-op elsewhere) and apply it to the InterfaceMaker skin.
ManlyMarco
requested changes
Jul 9, 2026
ManlyMarco
left a comment
Collaborator
There was a problem hiding this comment.
The difference in KK is already handled by having a separate light texture that is pre-baked
If it's not close enough then it would be best to replace that texture instead, or if it's fixed at runtime then the light texture system should be scrapped instead.
The API is fine as it is for use by other plugins, but the name of the method does not indicate that it does not work in KK, either make it always work or name it something like CorrectColorForKoikatu.
…tColorSpaceForKoikatu and remove the example implementation.
ManlyMarco
approved these changes
Jul 9, 2026
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.
Description
KK (Unity 5.6, Linear) samples sRGB UI PNGs too dark. Add a public gamma-LUT fixer (KK-only, no-op elsewhere) and apply it to the InterfaceMaker skin.
Motivation and Context
KKs VE window and IMGUI windows in general were too dark.
How Has This Been Tested?
KK and HS2 satrted and checked if colors are correct.
Performance test:
ms are average over the iterations NOT total time.
Performance test was made in a clean Unity project, since i tested multiple ways.
Screenshots (if appropriate):
Types of changes