MCPcopy Create free account
hub / github.com/carbonengine/trinity / GetValue

Method GetValue

trinity/Curves/Tr2CurveColor.cpp:46–59  ·  view source on GitHub ↗

--------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

44
45// --------------------------------------------------------------------------------
46Color Tr2CurveColor::GetValue( double time ) const
47{
48 double t = time - m_timeOffset;
49 Color color( m_r.GetValue( t ), m_g.GetValue( t ), m_b.GetValue( t ), m_a.IsEmpty() ? 1.0f : m_a.GetValue( t ) );
50 if( m_srgbOutput )
51 {
52 color.r = std::max( color.r, 0.f );
53 color.g = std::max( color.g, 0.f );
54 color.b = std::max( color.b, 0.f );
55 color.a = std::max( color.a, 0.f );
56 color = TriLinearToGamma( color );
57 }
58 return color;
59}
60
61// --------------------------------------------------------------------------------
62Color* Tr2CurveColor::Update( Color* in, Be::Time time )

Callers 9

UpdateImpostorsMethod · 0.45
RenderReflectionPassMethod · 0.45
FindInitialSpawnPointMethod · 0.45
CreateSplineTunnelsMethod · 0.45
ExtractDefaultMethod · 0.45
PropagateMethod · 0.45
UpdateMethod · 0.45
UpdateMethod · 0.45
GetCurrentValueMethod · 0.45

Calls 2

TriLinearToGammaFunction · 0.85
IsEmptyMethod · 0.45

Tested by

no test coverage detected