diff options
author | Adrian Kummerlaender | 2019-04-24 22:37:49 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2019-04-24 22:37:49 +0200 |
commit | 15f33fd09cffe05e82f5a1008cbfc2b2b12c8187 (patch) | |
tree | 8671c3d1e1237b10210038d8e11a8ac50a139fab /src/main.cc | |
parent | 34566b28a82869cbf004d91c6d658ba71d40ed97 (diff) | |
download | compustream-15f33fd09cffe05e82f5a1008cbfc2b2b12c8187.tar compustream-15f33fd09cffe05e82f5a1008cbfc2b2b12c8187.tar.gz compustream-15f33fd09cffe05e82f5a1008cbfc2b2b12c8187.tar.bz2 compustream-15f33fd09cffe05e82f5a1008cbfc2b2b12c8187.tar.lz compustream-15f33fd09cffe05e82f5a1008cbfc2b2b12c8187.tar.xz compustream-15f33fd09cffe05e82f5a1008cbfc2b2b12c8187.tar.zst compustream-15f33fd09cffe05e82f5a1008cbfc2b2b12c8187.zip |
Add support for erasing walls
Diffstat (limited to 'src/main.cc')
-rw-r--r-- | src/main.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.cc b/src/main.cc index f3f14ec..394248c 100644 --- a/src/main.cc +++ b/src/main.cc @@ -213,11 +213,11 @@ int render() { if ( currMouseState != 0 || prevMouseState != 0 ) { auto guard = interact_shader->use(); - interact_shader->setUniform("influxRequested", currMouseState == 1); - interact_shader->setUniform("wallRequested", currMouseState == 2); + interact_shader->setUniform("wall_requested", currMouseState == 1); + interact_shader->setUniform("fluid_requested", currMouseState == 2); - interact_shader->setUniform("startOfLine", prevLatticeMouseX, prevLatticeMouseY); - interact_shader->setUniform("endOfLine", currLatticeMouseX, currLatticeMouseY); + interact_shader->setUniform("start", prevLatticeMouseX, prevLatticeMouseY); + interact_shader->setUniform("end", currLatticeMouseX, currLatticeMouseY); interact_shader->dispatch(nX, nY); } |