History

Working on fetching/clearing heightfield chunks.

Andrzej Kapolka committed 11 years ago

Commit a0f75c91 parent 632f3bf5 files · +214 −269Browse files

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

Unified · Split

interface/src/MetavoxelSystem.cpp+11−0
@@ -363,6 +363,17 @@ void MetavoxelSystem::renderVoxelCursor(const glm::vec3& position, float radius) · 362 unmodified lines
363363
364364 DefaultMetavoxelRendererImplementation::getVoxelCursorProgram().release();
365365
366+ glEnableClientState(GL_TEXTURE_COORD_ARRAY);
367+
368+ DefaultMetavoxelRendererImplementation::getHeightfieldCursorProgram().bind();
369+
370+ SpannerCursorRenderVisitor spannerVisitor(bounds);
371+ guide(spannerVisitor);
372+
373+ DefaultMetavoxelRendererImplementation::getHeightfieldCursorProgram().release();
374+
375+ glDisableClientState(GL_TEXTURE_COORD_ARRAY);
376+
366377 glDisableClientState(GL_VERTEX_ARRAY);
367378
368379 glDisable(GL_POLYGON_OFFSET_FILL);