3 #include "HeatmapShapes.h"
4 #include "VectorMathDecl.h"
7 #include "AsyncTexturing.h"
17 namespace HeatmapTextureMethods
19 void BuildBinormals(
const v3& normal, v3& out_binormalA, v3& out_binormalB);
21 float CalculateParameterizationHalfExtentMeters(
22 const Geometry::OrientedBox2& orientedBox,
23 const float borderPercent
26 m44 BuildWorldToTextureCoordTransform(
30 const Geometry::OrientedBox2& orientedBox,
31 float parameterizationHalfExtentMeters
34 void WriteGradientTexture(
35 const std::vector<float>& gradientStops,
36 const std::vector<v4>& gradientColors,
37 const Helpers::GLHelpers::TextureInfo& textureInfo
40 Rendering::AsyncTexturing::Texture* CreateTexture(
int width,
int height);
42 void BuildConditionedHeatmapDensityParameters(
43 const std::vector<float>& heatmapDensityStops,
44 const std::vector<double>& heatmapRadiiMeters,
45 const std::vector<double>& heatmapGains,
46 const double radiusMetersDefault,
47 std::vector<float>& out_heatmapDensityStops,
48 std::vector<double>& out_heatmapRadiiMeters,
49 std::vector<double>& out_heatmapGains
52 void BuildConditionedHeatmapGradientParameters(
53 const std::vector<float>& gradientStops,
54 const std::vector<v4>& gradientColors,
55 std::vector<float>& out_gradientStops,
56 std::vector<v4>& out_gradientColors
59 float CalculateDensityBlendByZoom(