mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-03 06:24:30 +00:00
fixed a bug in stereographic projection
This commit is contained in:
1 parent
c261db8a08
commit
c7663c83be
1 file changed
+1
-1
+1
-1
@@ -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