Fix coloring issue.

This commit is contained in:
Nicolás Ortega Froysa 2018-10-25 18:26:14 +02:00
parent 442e5a12b2
commit 26d654cb61
No known key found for this signature in database
GPG Key ID: FEC70E3BAE2E69BF

View File

@ -41,7 +41,7 @@ cube::cube() {
&indices[0], GL_STATIC_DRAW);
srand(static_cast<unsigned int>(time(0)));
for(size_t i = 0; i < vertices.size(); i += 3)
for(size_t i = 0; i < vertices.size(); ++i)
{
colors.push_back(static_cast<float>(rand()) /
static_cast<float>(RAND_MAX));