mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-30 21:42:59 +00:00 
			
		
		
		
	correct equidistant in H3
This commit is contained in:
		| @@ -302,7 +302,12 @@ shared_ptr<glhr::GLprogram> write_shader(flagtype shader_flags) { | ||||
|     } | ||||
|   else if(pmodel == mdPerspective) { | ||||
|     shader_flags |= SF_PERS3 | SF_DIRECT; | ||||
|     if(hyperbolic) | ||||
|     if(vrhr::rendering() && hyperbolic) { | ||||
|       coordinator +=  | ||||
|         "t = t * acosh(t[3]) / length(t.xyz);\n" | ||||
|         "t[3] = 1.;\n"; | ||||
|       } | ||||
|     else if(hyperbolic) | ||||
|       distfun = "acosh(t[3])", treset = true; | ||||
|     else if(euclid || nonisotropic || stretch::in() || (sphere && ray::in_use)) | ||||
|       distfun = "length(t.xyz)", treset = true; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue