models are correctly rendered in framebuffers

This commit is contained in:
devZoGok
2021-10-19 19:06:40 +03:00
parent 19fa1590d0
commit 6102373fbc
4 changed files with 15 additions and 15 deletions
+2 -2
View File
@@ -131,10 +131,10 @@ namespace vb01{
shader->setVec2(particles[i].size,"size["+to_string(i)+"]");
}
glDisable(GL_CULL_FACE);
//glDisable(GL_CULL_FACE);
glBindVertexArray(VAO);
glDrawElementsInstanced(GL_TRIANGLES,6,GL_UNSIGNED_INT,0,numParticles);
glEnable(GL_CULL_FACE);
//glEnable(GL_CULL_FACE);
}
void ParticleEmitter::setDirection(Vector3 dir){