ray:: fixed mirrors in intra::in

This commit is contained in:
Zeno Rogue 2021-09-16 22:14:30 +02:00
parent 09b4191758
commit eb58d78555
1 changed files with 2 additions and 1 deletions

View File

@ -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";
}
}