LightsprintSDK 2021.08.08
rr_gl::ToneParameters Struct Reference

#include <TextureRenderer.h>

Public Member Functions

 ToneParameters ()
 

Public Attributes

rr::RRVec3 hsv
 
float steps
 
rr::RRVec4 color
 
float gamma
 

Detailed Description

Set of simple parameters that affect output color.

Color changes are applied in sRGB space in following order:

  • hue is increased by hsv[0] (in 0..360 range)
  • saturation is multiplied by hsv[1]
  • value(intensity) is multiplied by hsv[2]
  • precision is reduced so that all colors in 0..1 range change in given number of steps. 256=off
  • output is multiplied by color
  • output is gamma corrected by gamma

Constructor & Destructor Documentation

◆ ToneParameters()

rr_gl::ToneParameters::ToneParameters ( )
inline

Sets defaults that do nothing.

Member Data Documentation

◆ hsv

rr::RRVec3 rr_gl::ToneParameters::hsv

◆ steps

float rr_gl::ToneParameters::steps

◆ color

rr::RRVec4 rr_gl::ToneParameters::color

◆ gamma

float rr_gl::ToneParameters::gamma