HighMap library (C++)
Loading...
Searching...
No Matches
blending.hpp File Reference

Provides functions for various array blending modes. More...

Go to the source code of this file.

Namespaces

namespace  hmap
 
namespace  hmap::gpu
 

Functions

Array hmap::blend_exclusion (const Array &array1, const Array &array2)
 Return the 'exclusion' blending of two arrays.
 
Array hmap::blend_gradients (const Array &array1, const Array &array2, int ir=4)
 Return the blending of two arrays based on their gradients.
 
Array hmap::blend_negate (const Array &array1, const Array &array2)
 Return the 'negate' blending of two arrays.
 
Array hmap::blend_overlay (const Array &array1, const Array &array2)
 Return the 'overlay' blending of two arrays.
 
Array hmap::blend_soft (const Array &array1, const Array &array2)
 Return the 'soft' blending of two arrays.
 
Array hmap::mixer (const Array &t, const std::vector< const Array * > &arrays, float gain_factor=1.f)
 Return the mixing of a set of arrays based on a parameter t.
 
Array hmap::gpu::blend_gradients (const Array &array1, const Array &array2, int ir=4)
 See hmap::blend_gradients.
 
Array hmap::gpu::blend_poisson_bf (const Array &array1, const Array &array2, const int iterations=500, const Array *p_mask=nullptr)
 Blends two arrays using Poisson blending with a brute-force solver.
 

Detailed Description

Provides functions for various array blending modes.

Author
Otto Link (otto..nosp@m.link.nosp@m..bv@g.nosp@m.mail.nosp@m..com)

This header file contains functions for blending two arrays using different techniques and modes. The available blending modes include exclusion, negate, overlay, soft light, and gradient-based blending. These functions are useful for image processing and heightmap manipulations where blending effects are required.