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
695695
696696 applyScaleAndBindProgram(texture);
697697
698− // for performance, disable blending and enable backface culling
699− glDisable(GL_BLEND);
698+ // for performance, enable backface culling
700699 glEnable(GL_CULL_FACE);
701700
702701 // draw the number of voxels we have
@@ -704,7 +703,6 @@ void VoxelSystem::render(bool texture) { · 1 unmodified line
704703 glDrawRangeElementsEXT(GL_TRIANGLES, 0, VERTICES_PER_VOXEL * _voxelsInReadArrays - 1,
705704 36 * _voxelsInReadArrays, GL_UNSIGNED_INT, 0);
706705
707− glEnable(GL_BLEND);
708706 glDisable(GL_CULL_FACE);
709707
710708 removeScaleAndReleaseProgram(texture);