![]() |
Functions that return the color of procedural gradient for specific coordinates. More...
Functions | |
| template<typename valType > | |
| valType | linearGradient (glm::detail::tvec2< valType > const &Point0, glm::detail::tvec2< valType > const &Point1, glm::detail::tvec2< valType > const &Position) |
| template<typename valType > | |
| valType | radialGradient (glm::detail::tvec2< valType > const &Center, valType const &Radius, glm::detail::tvec2< valType > const &Focal, glm::detail::tvec2< valType > 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.
| valType glm::linearGradient | ( | glm::detail::tvec2< valType > const & | Point0, |
| glm::detail::tvec2< valType > const & | Point1, | ||
| glm::detail::tvec2< valType > const & | Position | ||
| ) |
Return a color from a linear gradient.
| valType glm::radialGradient | ( | glm::detail::tvec2< valType > const & | Center, |
| valType const & | Radius, | ||
| glm::detail::tvec2< valType > const & | Focal, | ||
| glm::detail::tvec2< valType > const & | Position | ||
| ) |
Return a color from a radial gradient.
1.7.4