History

More efficiency for glow effect.

Andrzej Kapolka committed 13 years ago

Commit a3cee5d1 parent 9189a204 files · +43 −35Browse files

Showing the changes to interface/src/VoxelSystem.cpp (1 of 4 files). Show all

Unified · Split

interface/src/VoxelSystem.cpp+1−3
@@ -695,8 +695,7 @@ void VoxelSystem::render(bool texture) { · 694 unmodified lines
695 695
696 applyScaleAndBindProgram(texture);696 applyScaleAndBindProgram(texture);
697 697
698 // for performance, disable blending and enable backface culling698 // for performance, enable backface culling
699 glDisable(GL_BLEND);
700 glEnable(GL_CULL_FACE);699 glEnable(GL_CULL_FACE);
701 700
702 // draw the number of voxels we have701 // draw the number of voxels we have
@@ -704,7 +703,6 @@ void VoxelSystem::render(bool texture) { · 1 unmodified line
704 glDrawRangeElementsEXT(GL_TRIANGLES, 0, VERTICES_PER_VOXEL * _voxelsInReadArrays - 1,703 glDrawRangeElementsEXT(GL_TRIANGLES, 0, VERTICES_PER_VOXEL * _voxelsInReadArrays - 1,
705 36 * _voxelsInReadArrays, GL_UNSIGNED_INT, 0);704 36 * _voxelsInReadArrays, GL_UNSIGNED_INT, 0);
706 705
707 glEnable(GL_BLEND);
708 glDisable(GL_CULL_FACE);706 glDisable(GL_CULL_FACE);
709 707
710 removeScaleAndReleaseProgram(texture);708 removeScaleAndReleaseProgram(texture);