Rerun C++ SDK
Loading...
Searching...
No Matches
rerun::components::GammaCorrection Struct Reference

Component: A gamma correction value to be used with a scalar value or color. More...

#include <rerun/components/gamma_correction.hpp>

Public Member Functions

 GammaCorrection (rerun::datatypes::Float32 gamma_)
 
GammaCorrectionoperator= (rerun::datatypes::Float32 gamma_)
 
 GammaCorrection (float value_)
 
GammaCorrectionoperator= (float value_)
 
 operator rerun::datatypes::Float32 () const
 Cast to the underlying Float32 datatype.
 

Public Attributes

rerun::datatypes::Float32 gamma
 

Detailed Description

Component: A gamma correction value to be used with a scalar value or color.

Used to adjust the gamma of a color or scalar value between 0 and 1 before rendering. new_value = old_value ^ gamma

Valid range is from 0 (excluding) to max float. Defaults to 1.0 unless otherwise specified.


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