fix emission buffer writing & fix entity shader

This commit is contained in:
MihailRis
2025-07-12 23:28:38 +03:00
parent 3f3f48eb6d
commit 2831d1c963
6 changed files with 34 additions and 18 deletions
+8 -1
View File
@@ -85,7 +85,14 @@ void ModelBatch::draw(
d = glm::dot(norm, SUN_VECTOR);
d = 0.8f + d * 0.2f;
}
batch->vertex(matrix * glm::vec4(vert.coord, 1.0f), vert.uv, lights*d, tint, norm);
batch->vertex(
matrix * glm::vec4(vert.coord, 1.0f),
vert.uv,
lights * d,
tint,
norm,
mesh.lighting ? 0.0f : 1.0f
);
}
}
}