mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-31 10:03:46 +00:00
[drape] Fix sqrt constexpr
Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
@@ -101,7 +101,7 @@ void SubmitCircleStaticVertices(RoadClass roadClass, glsl::vec3 const & pivot, g
|
||||
glsl::vec2 const & uv, std::vector<TrafficCircleStaticVertex> & circlesGeometry)
|
||||
{
|
||||
// Here we use an equilateral triangle to render circle (incircle of a triangle).
|
||||
static float constexpr kSqrt3 = sqrt(3.0f);
|
||||
static float constexpr kSqrt3 = 1.732050808f;
|
||||
auto const p = glsl::vec4(pivot, static_cast<float>(roadClass));
|
||||
circlesGeometry.emplace_back(p, glsl::vec4(rightNormal, -kSqrt3, -1.0f), uv);
|
||||
circlesGeometry.emplace_back(p, glsl::vec4(rightNormal, kSqrt3, -1.0f), uv);
|
||||
|
||||
Reference in New Issue
Block a user