mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 21:07:17 +00:00
fixed the clipping in Poincare Ball model
This commit is contained in:
parent
e898f0ccf0
commit
4affb01062
@ -126,7 +126,7 @@ shared_ptr<glhr::GLprogram> write_shader(flagtype shader_flags) {
|
|||||||
else if(pmodel == mdDisk && GDIM == 3 && !spherespecial && !nonisotropic && !prod) {
|
else if(pmodel == mdDisk && GDIM == 3 && !spherespecial && !nonisotropic && !prod) {
|
||||||
coordinator += "t /= (t[3] + uAlpha);\n";
|
coordinator += "t /= (t[3] + uAlpha);\n";
|
||||||
vsh += "uniform mediump float uAlpha;";
|
vsh += "uniform mediump float uAlpha;";
|
||||||
shader_flags |= SF_DIRECT | SF_BOX;
|
shader_flags |= SF_DIRECT | SF_BOX | SF_ZFOG;
|
||||||
treset = true;
|
treset = true;
|
||||||
}
|
}
|
||||||
else if(pmodel == mdBand && hyperbolic) {
|
else if(pmodel == mdBand && hyperbolic) {
|
||||||
|
Loading…
Reference in New Issue
Block a user