Intel GPU/OpenGL 2.x planet normals fix

This commit is contained in:
Anuken
2025-10-08 08:45:40 +09:00
parent 576b7f6b6b
commit a0cf5b7265
6 changed files with 22 additions and 7 deletions

View File

@@ -275,8 +275,8 @@ public class MeshBuilder{
if(floats.length > 5) floats[5] = emissive;
}else{
floats[3] = normal.x;
floats[4] = normal.x;
floats[5] = normal.x;
floats[4] = normal.y;
floats[5] = normal.z;
floats[6] = color;
if(floats.length > 7) floats[7] = emissive;