arsa  2.7
Public Member Functions | List of all members
irr::scene::SVertexColorDesaturateToLightnessManipulator Class Reference

Vertex manipulator which desaturates the color values. More...

#include <SVertexManipulator.h>

Inheritance diagram for irr::scene::SVertexColorDesaturateToLightnessManipulator:
irr::scene::IVertexManipulator

Public Member Functions

void operator() (video::S3DVertex &vertex) const
 

Detailed Description

Vertex manipulator which desaturates the color values.

Uses the lightness value of the color.

Definition at line 160 of file SVertexManipulator.h.

Member Function Documentation

◆ operator()()

void irr::scene::SVertexColorDesaturateToLightnessManipulator::operator() ( video::S3DVertex vertex) const
inline

Definition at line 163 of file SVertexManipulator.h.

164  {
165  vertex.Color=core::round32(vertex.Color.getLightness());
166  }
REALINLINE s32 round32(f32 x)
Definition: irrMath.h:657

The documentation for this class was generated from the following file: