Skylight.cpp   Skylight.cpp 
skipping to change at line 28 skipping to change at line 28
// Class which compute the daylight sky color // Class which compute the daylight sky color
// Fast implementation of the algorithm from the article // Fast implementation of the algorithm from the article
// "A Practical Analytic Model for Daylight" by A. J. Preetham, Peter Shirl ey and Brian Smits. // "A Practical Analytic Model for Daylight" by A. J. Preetham, Peter Shirl ey and Brian Smits.
#include "Skylight.hpp" #include "Skylight.hpp"
#include <cmath> #include <cmath>
#include <cstdlib> #include <cstdlib>
Skylight::Skylight() : thetas(0.f), T(0.f) Skylight::Skylight() :
thetas(0.f),
T(0.f),
zenithLuminance(0.f),
zenithColorX(0.f),
zenithColorY(0.f),
eyeLumConversion(0.f)
{ {
AY = BY = CY = DY = EY = 0.f;
Ax = Bx = Cx = Dx = Ex = 0.f;
Ay = By = Cy = Dy = Ey = 0.f;
term_x = term_y = term_Y = 0.f;
} }
Skylight::~Skylight() Skylight::~Skylight()
{ {
} }
void Skylight::setParams(float _sunZenithAngle, float _turbidity) void Skylight::setParams(float _sunZenithAngle, float _turbidity)
{ {
// Set the two main variables // Set the two main variables
thetas = _sunZenithAngle; thetas = _sunZenithAngle;
 End of changes. 2 change blocks. 
1 lines changed or deleted 11 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/