History

scale back heads after voxel system draw

Stephen Birarda committed 13 years ago

Commit 5f052d71 parent 95926cb1 file · +3 −0Browse files

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

Unified · Split

interface/src/VoxelSystem.cpp+3−0
@@ -180,6 +180,9 @@ void VoxelSystem::render() { · 179 unmodified lines
180 // bind with 0 to switch back to normal operation180 // bind with 0 to switch back to normal operation
181 glBindBuffer(GL_ARRAY_BUFFER, 0);181 glBindBuffer(GL_ARRAY_BUFFER, 0);
182 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0);182 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0);
183
184 // scale back down to 1 so heads aren't massive
185 glScalef(1, 1, 1);
183}186}
184 187
185void VoxelSystem::simulate(float deltaTime) {188void VoxelSystem::simulate(float deltaTime) {