mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-20 19:14:05 +00:00
fixed a bug in stereographic projection
This commit is contained in:
@@ -83,7 +83,7 @@ EX string stereo_shader() {
|
||||
"float s = t.z;\n"
|
||||
"float l = length(t.xyz);\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.w = 1.;\n";
|
||||
}
|
||||
|
Reference in New Issue
Block a user