From eb58d7855580bd62675df9b0a699ee2ce819d1ba Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 16 Sep 2021 22:14:30 +0200 Subject: [PATCH] ray:: fixed mirrors in intra::in --- raycaster.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/raycaster.cpp b/raycaster.cpp index 23e3612d..fab8dfbb 100644 --- a/raycaster.cpp +++ b/raycaster.cpp @@ -958,7 +958,8 @@ void raygen::apply_reflect() { " tangent = " + getM("uMirrorShift+walloffset+which") + " * tangent;\n" " continue;\n" " }\n"; - fsh += "uniform int uMirrorShift;\n"; + if(fsh.find("uMirrorShift") == string::npos) + fsh += "uniform int uMirrorShift;\n"; } }