HighMap library (C++)
Loading...
Searching...
No Matches
color_adjust.cpp File Reference

Namespaces

namespace  hmap

Functions

uint32_t hmap::helper_hash_u32 (uint32_t x)
float hmap::helper_hash_01 (uint32_t x)
glm::vec3 hmap::shade_color (const glm::vec3 &color, float t)
 Adjust color by shading parameter t clamped to [0, 1].
void hmap::color_adjust (Array &r, Array &g, Array &b, ColorAdjust param, glm::ivec2 dither_seed)
 Apply color correction and tonemapping to RGB arrays.
void hmap::shade_color (Texture &tex, const Array &factor)
 Apply shade_color to each pixel of a Texture using values from an Array.
void hmap::shade_topographic_residual (Texture &tex, const Array &z, int ir, float strength=1.0f)
 Apply shade_color to a Texture based on topographic residuals of an elevation array.