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:
parent
c261db8a08
commit
c7663c83be
@ -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";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user