Add H=f(H) to color and light

This commit is contained in:
Desmis
2017-07-13 07:30:51 +02:00
parent d204369f83
commit 4f7d310eb2
19 changed files with 905 additions and 170 deletions

View File

@@ -549,7 +549,7 @@ public:
virtual ~LocLHCurve() {};
LocLHCurve();
void Reset();
void Set (const std::vector<double> &curvePoints);
void Set (const std::vector<double> &curvePoints, bool &LHutili);
float getSum() const
{
return sum;
@@ -565,6 +565,33 @@ public:
}
};
class LocHHCurve
{
private:
LUTf lutLocHHCurve; // 0xffff range
void Set (const Curve &pCurve);
public:
float sum;
virtual ~LocHHCurve() {};
LocHHCurve();
void Reset();
void Set (const std::vector<double> &curvePoints, bool &HHutili);
float getSum() const
{
return sum;
}
float operator[] (float index) const
{
return lutLocHHCurve[index];
}
operator bool (void) const
{
return lutLocHHCurve;
}
};
class LocretigainCurve
{