mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add particles (WIP)
This commit is contained in:
parent
a0f885e26a
commit
217176f74f
8 changed files with 280 additions and 4 deletions
|
|
@ -52,6 +52,11 @@ void MainBatch::flush() {
|
|||
index = 0;
|
||||
}
|
||||
|
||||
void MainBatch::begin() {
|
||||
texture = nullptr;
|
||||
blank->bind();
|
||||
}
|
||||
|
||||
void MainBatch::prepare(int vertices) {
|
||||
if (index + VERTEX_SIZE * vertices > capacity * VERTEX_SIZE) {
|
||||
flush();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue