1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-16 18:29:59 +00:00

fixed R3 shader

This commit is contained in:
Zeno Rogue 2019-10-22 10:52:30 +02:00
parent ed5a86a1b8
commit 0e3fc3a0f9

View File

@ -196,7 +196,7 @@ shared_ptr<glhr::GLprogram> write_shader(flagtype shader_flags) {
if(hyperbolic) if(hyperbolic)
distfun = "acosh(t[3])", treset = true; distfun = "acosh(t[3])", treset = true;
else if(euclid) else if(euclid)
distfun = "length(t.xyz);", treset = true; distfun = "length(t.xyz)", treset = true;
else { else {
if(spherephase & 4) coordinator += "t = -t;\n"; if(spherephase & 4) coordinator += "t = -t;\n";
switch(spherephase & 3) { switch(spherephase & 3) {