Skip to content

Added colorlight compat and fixed flat textures - #24

Merged
programmer1o1 merged 1 commit into
programmer1o1:masterfrom
AshenSolYT:Colorlight-Patch
Nov 15, 2026
Merged

programmer1o1 merged 1 commit into
programmer1o1:masterfrom
AshenSolYT:Colorlight-Patch

Conversation

@AshenSolYT

Copy link
Copy Markdown

colorlight compatibility was added by checking if colorlight is installed new version or older, by hooking into colorlight so no files from colorlight is ever used and why the flat textures happen and colorlights breaking sodium:blocks/block_layer_opaque

colorLight replaces sodium's terrain shader "sodium:blocks/block_layer_opaque" with its own copy "colorlight:blocks/colored_terrain", so the greedy UV patch never applied and merged faces sampled one texel, rendering as a flat texture on some surfaces

and latest versions of sodium and colorlight were used at the time of this patch

colorlight compatibility was added by checking if colorlight is installed new version or older, by hooking into colorlight so no files from colorlight is ever used and why the flat textures happen and colorlights breaking sodium:blocks/block_layer_opaque

colorLight replaces sodium's terrain shader "sodium:blocks/block_layer_opaque" with its own copy "colorlight:blocks/colored_terrain", so the greedy UV patch never applied and merged faces sampled one texel, rendering as a flat texture on some surfaces
@AshenSolYT

Copy link
Copy Markdown
Author

@programmer1o1 ???

@AshenSolYT

Copy link
Copy Markdown
Author

@programmer1o1 so did you check it?

@programmer1o1

Copy link
Copy Markdown
Owner

hi, sorry for the delay, busy atm but I tested the ColorLight fix in a Superflat world. textures and colored lighting look fine now. you also have made optimization for sodium chunk builder tasks so I also compared F3+L profiles between 0.6.2 and 0.6.1 but both recordings had an empty chunk compile queue, so I couldn’t verify the chunk-build performance changes. I will need to test while chunks are actively loading but thanks for the pull request!

@AshenSolYT

Copy link
Copy Markdown
Author

hi, sorry for the delay, busy atm but I tested the ColorLight fix in a Superflat world. textures and colored lighting look fine now. you also have made optimization for sodium chunk builder tasks so I also compared F3+L profiles between 0.6.2 and 0.6.1 but both recordings had an empty chunk compile queue, so I couldn’t verify the chunk-build performance changes. I will need to test while chunks are actively loading but thanks for the pull request!

oh okay i don't remember whether i asked to do chunk building changes or not but i think it did that to fix the issue.
performance was similar when i tested it tho

@AshenSolYT

Copy link
Copy Markdown
Author

oh yeah @programmer1o1 how do i compile specific versions?

@programmer1o1

Copy link
Copy Markdown
Owner

If you are using gradlew command, just run ./gradlew :26.3:build from the repo root, replace the 26.3 with the version you want. The jar will be in versions/[version_you_set]/build/libs/. For Intellj, open the Gradle tool and select any versions you want and build it from there.

@AshenSolYT

AshenSolYT commented Nov 13, 2026 •

Copy link
Copy Markdown
Author

If you are using gradlew command, just run ./gradlew :26.3:build from the repo root, replace the 26.3 with the version you want. The jar will be in versions/[version_you_set]/build/libs/. For Intellj, open the Gradle tool and select any versions you want and build it from there.

im on windows and i used gradlew :26.3:build then it started building all versions from 1.21 to 26.3 and same with linux

@AshenSolYT

AshenSolYT commented Nov 13, 2026 •

Copy link
Copy Markdown
Author

ok i used this "gradlew :26.3:build --configure-on-demand" then it started compiling 26.3

@programmer1o1

Copy link
Copy Markdown
Owner

radlew :26.3:build then it started building all versions from 1.21 to 26.3 and same with linux

Just change ":26.3:build" to like ":[ANY_VERSION]:build", that should work

@AshenSolYT

Copy link
Copy Markdown
Author

i already fixed the issue with this gradlew :26.3:build --configure-on-demand

@programmer1o1
programmer1o1 merged commit c1d85cd into programmer1o1:master Nov 15, 2026
@AshenSolYT

Copy link
Copy Markdown
Author

@programmer1o1 nice dude did you rewrite the code or did you just merge it? just asking

@AshenSolYT

Copy link
Copy Markdown
Author

ill try doing more compat patches when i come across any mod that has issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants