Showing the changes to interface/src/VoxelSystem.cpp (1 of 4 files). Show all
Unified · Split
| @@ -244,6 +244,8 @@ void VoxelSystem::render() { · 243 unmodified lines | ||
| 244 | 244 | glBindBuffer(GL_ARRAY_BUFFER, vboColorsID); |
| 245 | 245 | glColorPointer(3, GL_FLOAT, 0, 0); |
| 246 | 246 | |
| 247 | + glNormal3f(0, 1, 0); | |
| 248 | + | |
| 247 | 249 | glDrawElements(GL_TRIANGLES, 36 * voxelsRendered, GL_UNSIGNED_INT, 0); |
| 248 | 250 | |
| 249 | 251 | // deactivate vertex and color arrays after drawing |