StelToneReproducer.hpp   StelToneReproducer.hpp 
skipping to change at line 142 skipping to change at line 142
{ {
const float lnPix0p0001 = -8.0656104861f; const float lnPix0p0001 = -8.0656104861f;
return std::exp(((lnInputScale+lnWorldLuminance+lnPix0p0001) *alphaWaOverAlphaDa+lnTerm2+lnOneOverMaxdL)*pFact); return std::exp(((lnInputScale+lnWorldLuminance+lnPix0p0001) *alphaWaOverAlphaDa+lnTerm2+lnOneOverMaxdL)*pFact);
} }
//! Convert from xyY color system to RGB. //! Convert from xyY color system to RGB.
//! The first two components x and y indicate the "color", the Y is luminance in cd/m^2. //! The first two components x and y indicate the "color", the Y is luminance in cd/m^2.
//! @param xyY an array of 3 floats which are replaced by the conver ted RGB values //! @param xyY an array of 3 floats which are replaced by the conver ted RGB values
void xyYToRGB(float* xyY) const; void xyYToRGB(float* xyY) const;
void getShadersParams(float& a, float& b, float & c) const
{
a=alphaWaOverAlphaDa;
b=oneOverGamma;
c=term2TimesOneOverMaxdLpOneOverGamma;
}
private: private:
// The global luminance scaling // The global luminance scaling
float inputScale; float inputScale;
float lnInputScale; // std::log(inputScale) float lnInputScale; // std::log(inputScale)
float Lda; // Display luminance adaptation (in cd/m^2) float Lda; // Display luminance adaptation (in cd/m^2)
float Lwa; // World luminance adaptation (in cd/m^2) float Lwa; // World luminance adaptation (in cd/m^2)
float oneOverMaxdL; // 1 / Display maximum luminance (in cd/m^2) float oneOverMaxdL; // 1 / Display maximum luminance (in cd/m^2)
float lnOneOverMaxdL; // log(oneOverMaxdL) float lnOneOverMaxdL; // log(oneOverMaxdL)
float oneOverGamma; // 1 / Screen gamma value float oneOverGamma; // 1 / Screen gamma value
 End of changes. 1 change blocks. 
0 lines changed or deleted 6 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/