mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-10 02:33:00 +00:00
fixed mdEquidistant shader flags
This commit is contained in:
@@ -313,7 +313,7 @@ shared_ptr<glhr::GLprogram> write_shader(flagtype shader_flags) {
|
|||||||
if(dim3) shader_flags |= SF_ZFOG;
|
if(dim3) shader_flags |= SF_ZFOG;
|
||||||
}
|
}
|
||||||
else if(pmodel == mdEquidistant && hyperbolic) {
|
else if(pmodel == mdEquidistant && hyperbolic) {
|
||||||
shader_flags |= SF_BAND | SF_ORIENT | SF_BOX | SF_DIRECT;
|
shader_flags |= SF_BOX | SF_DIRECT;
|
||||||
coordinator += "t = uPP * t;", vsh += "uniform mediump mat4 uPP;";
|
coordinator += "t = uPP * t;", vsh += "uniform mediump mat4 uPP;";
|
||||||
if(dim3) {
|
if(dim3) {
|
||||||
coordinator += "mediump float d = length(t.xyz); if(d > 0.) t.xyz *= asinh(d) / d / 2.; t[3] = 1.;\n";
|
coordinator += "mediump float d = length(t.xyz); if(d > 0.) t.xyz *= asinh(d) / d / 2.; t[3] = 1.;\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user