--------------------------------------------------------------------------------
| 44 | |
| 45 | // -------------------------------------------------------------------------------- |
| 46 | Color 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 | // -------------------------------------------------------------------------------- |
| 62 | Color* Tr2CurveColor::Update( Color* in, Be::Time time ) |
no test coverage detected