mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 04:21:50 +00:00
fix stars render
This commit is contained in:
parent
14affb72b6
commit
25c9c9a30a
3 changed files with 12 additions and 9 deletions
|
|
@ -245,7 +245,7 @@ void Batch3D::blockCube(
|
|||
cube((1.0f - size) * -0.5f, size, texfaces, tint, shading);
|
||||
}
|
||||
|
||||
void Batch3D::point(glm::vec3 coord, glm::vec2 uv, glm::vec4 tint) {
|
||||
void Batch3D::vertex(glm::vec3 coord, glm::vec2 uv, glm::vec4 tint) {
|
||||
if (index + B3D_VERTEX_SIZE >= capacity) {
|
||||
flush();
|
||||
}
|
||||
|
|
@ -253,7 +253,10 @@ void Batch3D::point(glm::vec3 coord, glm::vec2 uv, glm::vec4 tint) {
|
|||
}
|
||||
|
||||
void Batch3D::point(glm::vec3 coord, glm::vec4 tint) {
|
||||
point(coord, glm::vec2(), tint);
|
||||
if (index + B3D_VERTEX_SIZE >= capacity) {
|
||||
flushPoints();
|
||||
}
|
||||
vertex(coord, {}, tint.r, tint.g, tint.b, tint.a);
|
||||
}
|
||||
|
||||
void Batch3D::flush() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue