From 6f6073be5de8c8598c4af7f38c90c3f83b5bf1bf Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Tue, 18 Dec 2018 21:08:20 +0100 Subject: Hacky mouse-based fluid interaction --- src/buffer/vertex/lattice_cell_buffer.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/buffer/vertex') diff --git a/src/buffer/vertex/lattice_cell_buffer.cc b/src/buffer/vertex/lattice_cell_buffer.cc index ea4e103..e8cfc08 100644 --- a/src/buffer/vertex/lattice_cell_buffer.cc +++ b/src/buffer/vertex/lattice_cell_buffer.cc @@ -7,7 +7,7 @@ LatticeCellBuffer::LatticeCellBuffer(GLuint nX, GLuint nY) { glGenBuffers(1, &_buffer); std::vector data(9*nX*nY, GLfloat{1./9.}); - const int insetX = 0.45*nX; + /*const int insetX = 0.45*nX; const int insetY = 0.45*nY; for (int x = insetX; x < nX-insetX; x++) { @@ -18,7 +18,7 @@ LatticeCellBuffer::LatticeCellBuffer(GLuint nX, GLuint nY) { } } } - } + }*/ glBindVertexArray(_array); glBindBuffer(GL_ARRAY_BUFFER, _buffer); -- cgit v1.2.3