mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 22:12:59 +00:00 
			
		
		
		
	ray:: fixing the vectors (commented off)
This commit is contained in:
		| @@ -536,6 +536,13 @@ void enable_raycaster() { | |||||||
|     else fmain +=  |     else fmain +=  | ||||||
|       "position = position + tangent * dist;\n"; |       "position = position + tangent * dist;\n"; | ||||||
|        |        | ||||||
|  |     #if CAP_FIX_RAYCAST | ||||||
|  |     if(hyperbolic) fmain += | ||||||
|  |       "position /= sqrt(position.w*position.w - dot(position.xyz, position.xyz));\n" | ||||||
|  |       "tangent -= dot(vec4(-position.xyz, position.w), tangent) * position;\n" | ||||||
|  |       "tangent /= sqrt(dot(tangent.xyz, tangent.xyz) - tangent.w*tangent.w);\n"; | ||||||
|  |     #endif | ||||||
|  |      | ||||||
|     if(hyperbolic && binarytiling) { |     if(hyperbolic && binarytiling) { | ||||||
|       fmain +=  |       fmain +=  | ||||||
|         "if(which == 20) {\n" |         "if(which == 20) {\n" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue