This commit is contained in:
mcrcortex
2025-09-30 18:59:15 +10:00
parent b364713268
commit 0968b25968
4 changed files with 22 additions and 7 deletions

View File

@@ -9,7 +9,9 @@ struct BlockModel {
//TODO: FIXME: this isnt actually correct cause depending on the face (i think) it could be 1/64 th of a position off
// but im going to assume that since we are dealing with huge render distances, this shouldent matter that much
float extractFaceIndentation(uint faceData) {
return float((faceData>>16)&63u)/63.0;
uint enc = (faceData>>16)&63u;
enc += uint(enc==63u);//convert 63 to 64 cause of pain reasons
return float(enc)/64.0;
}
vec4 extractFaceSizes(uint faceData) {