summaryrefslogtreecommitdiff
path: root/game/network
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-03-03 00:20:21 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-03-03 00:20:25 +0000
commit3dbf5028eec53f661a018ddbd969bd26aa7748b5 (patch)
tree2eb0e548461f24397a9f16da8455dd11971061fb /game/network
parentOnly calculate and bind the model transform if the shader program uses it (diff)
downloadilt-3dbf5028eec53f661a018ddbd969bd26aa7748b5.tar.bz2
ilt-3dbf5028eec53f661a018ddbd969bd26aa7748b5.tar.xz
ilt-3dbf5028eec53f661a018ddbd969bd26aa7748b5.zip
Create and use a shader program for things with absolute position
Rails in this case.
Diffstat (limited to 'game/network')
-rw-r--r--game/network/rail.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/game/network/rail.cpp b/game/network/rail.cpp
index 6834989..d095e38 100644
--- a/game/network/rail.cpp
+++ b/game/network/rail.cpp
@@ -98,7 +98,7 @@ RailLinks::addLinksBetween(glm::vec3 start, glm::vec3 end)
void
RailLinks::render(const Shader & shader) const
{
- shader.setModel(Location {});
+ shader.setModel(Location {}, Shader::Program::StaticPos);
texture->Bind();
links.apply(&RailLink::render, shader);
}