From 3dbf5028eec53f661a018ddbd969bd26aa7748b5 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 3 Mar 2021 00:20:21 +0000 Subject: Create and use a shader program for things with absolute position Rails in this case. --- game/network/rail.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'game/network/rail.cpp') 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); } -- cgit v1.2.3