Lots of fixes

This commit is contained in:
mcrcortex
2024-01-29 11:18:16 +10:00
parent c4efd29206
commit 6302d3db1e
9 changed files with 308 additions and 35 deletions

View File

@@ -83,9 +83,9 @@ void main() {
//TODO: make the face orientated by 2x3 so that division is not a integer div and modulo isnt needed
// as these are very slow ops
baseUV = modelUV + (vec2(face%3, face/3) * (1f/(vec2(3,2)*256f)));
uv = quadSize;// + faceOffset;//Add in the face offset for 0,0 uv
uv = quadSize + faceOffset;//Add in the face offset for 0,0 uv
discardAlpha = 1;
discardAlpha = 0;
//Compute lighting
colourTinting = getLighting(extractLightId(quad));