1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 21:07:17 +00:00

ray:: fixed on GLSL

This commit is contained in:
Zeno Rogue 2021-02-07 20:41:47 +01:00
parent 6e33333b0c
commit 1307790d46

View File

@ -1173,10 +1173,10 @@ void enable_raycaster() {
" if(col[3] > 0.0) {\n";
if(eyes)
fmain += " float gou = go / uAbsUnit;\n";
fmain += " mediump float gou = go / uAbsUnit;\n";
else
fmain += " float gou = go;\n";
fmain += " mediump float gou = go;\n";
if(hard_limit < NO_LIMIT)
fmain += " if(gou > " + to_glsl(hard_limit) + ") { gl_FragDepth = 1.; return; }\n";