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

fixed a bug in stereographic projection

This commit is contained in:
Zeno Rogue 2022-08-12 09:07:19 +02:00
parent c261db8a08
commit c7663c83be

View File

@ -83,7 +83,7 @@ EX string stereo_shader() {
"float s = t.z;\n" "float s = t.z;\n"
"float l = length(t.xyz);\n" "float l = length(t.xyz);\n"
"t /= max(l, 1e-2);\n" "t /= max(l, 1e-2);\n"
"t.z += " + glhr::to_glsl(panini_alpha) + ";\n" "t.z += " + glhr::to_glsl(stereo_alpha) + ";\n"
"t *= l;\n" "t *= l;\n"
"t.w = 1.;\n"; "t.w = 1.;\n";
} }