GLM
0.9.5
|
Functions | |
template<typename T , precision P> | |
T | linearGradient (detail::tvec2< T, P > const &Point0, detail::tvec2< T, P > const &Point1, detail::tvec2< T, P > const &Position) |
template<typename T , precision P> | |
T | radialGradient (detail::tvec2< T, P > const &Center, T const &Radius, detail::tvec2< T, P > const &Focal, detail::tvec2< T, P > const &Position) |
Functions that return the color of procedural gradient for specific coordinates.
<glm/gtx/gradient_paint.hpp> need to be included to use these functionalities.
T glm::linearGradient | ( | detail::tvec2< T, P > const & | Point0, |
detail::tvec2< T, P > const & | Point1, | ||
detail::tvec2< T, P > const & | Position | ||
) |
Return a color from a linear gradient.
T glm::radialGradient | ( | detail::tvec2< T, P > const & | Center, |
T const & | Radius, | ||
detail::tvec2< T, P > const & | Focal, | ||
detail::tvec2< T, P > const & | Position | ||
) |
Return a color from a radial gradient.