commit 9418107422c6831e23caeb81cbe6b04ec2383c58 parent f7bab989ed3ccea09b13252b1ac75b80ce122491 Author: Michael Savage <mikejsavage@gmail.com> Date: Sat Sep 10 19:41:36 -0700 Static Diffstat:
gpubtt.cc | | | 4 | ++-- |
diff --git a/gpubtt.cc b/gpubtt.cc @@ -45,12 +45,12 @@ static void gpubtt_build( static float angle( glm::vec3 a, glm::vec3 b ) { const glm::vec3 d = b - a; - const float dist_xy = sqrtf( d.x * d.x + d.y * d.y ); + const float dist_xy = glm::length( glm::vec2( d.x, d.y ) ); return d.z / dist_xy; } -void compute_horizons( +static void compute_horizons( MemoryArena * arena, const Heightmap * hm, float * horizons, glm::ivec2 start, glm::ivec2 step