diff options
Diffstat (limited to 'intern/sky')
-rw-r--r-- | intern/sky/source/sky_model.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/intern/sky/source/sky_model.cpp b/intern/sky/source/sky_model.cpp index 4181605b9e4..9fb80202c98 100644 --- a/intern/sky/source/sky_model.cpp +++ b/intern/sky/source/sky_model.cpp @@ -129,7 +129,7 @@ static void ArHosekSkyModel_CookConfiguration(ArHosekSkyModel_Dataset dataset, elev_matrix = dataset + (9 * 6 * (int_turbidity - 1)); - for (unsigned int i = 0; i < 9; ++i) { + for (uint i = 0; i < 9; ++i) { //(1-t).^3* A1 + 3*(1-t).^2.*t * A2 + 3*(1-t) .* t .^ 2 * A3 + t.^3 * A4; config[i] = (1.0 - albedo) * (1.0 - turbidity_rem) * @@ -143,7 +143,7 @@ static void ArHosekSkyModel_CookConfiguration(ArHosekSkyModel_Dataset dataset, // alb 1 low turb elev_matrix = dataset + (9 * 6 * 10 + 9 * 6 * (int_turbidity - 1)); - for (unsigned int i = 0; i < 9; ++i) { + for (uint i = 0; i < 9; ++i) { //(1-t).^3* A1 + 3*(1-t).^2.*t * A2 + 3*(1-t) .* t .^ 2 * A3 + t.^3 * A4; config[i] += (albedo) * (1.0 - turbidity_rem) * @@ -161,7 +161,7 @@ static void ArHosekSkyModel_CookConfiguration(ArHosekSkyModel_Dataset dataset, // alb 0 high turb elev_matrix = dataset + (9 * 6 * (int_turbidity)); - for (unsigned int i = 0; i < 9; ++i) { + for (uint i = 0; i < 9; ++i) { //(1-t).^3* A1 + 3*(1-t).^2.*t * A2 + 3*(1-t) .* t .^ 2 * A3 + t.^3 * A4; config[i] += (1.0 - albedo) * (turbidity_rem) * @@ -175,7 +175,7 @@ static void ArHosekSkyModel_CookConfiguration(ArHosekSkyModel_Dataset dataset, // alb 1 high turb elev_matrix = dataset + (9 * 6 * 10 + 9 * 6 * (int_turbidity)); - for (unsigned int i = 0; i < 9; ++i) { + for (uint i = 0; i < 9; ++i) { //(1-t).^3* A1 + 3*(1-t).^2.*t * A2 + 3*(1-t) .* t .^ 2 * A3 + t.^3 * A4; config[i] += (albedo) * (turbidity_rem) * @@ -313,7 +313,7 @@ SKY_ArHosekSkyModelState *SKY_arhosek_xyz_skymodelstate_alloc_init(const double state->albedo = albedo; state->elevation = elevation; - for (unsigned int channel = 0; channel < 3; ++channel) { + for (uint channel = 0; channel < 3; ++channel) { ArHosekSkyModel_CookConfiguration( datasetsXYZ[channel], state->configs[channel], turbidity, albedo, elevation); |