Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'intern/sky/source/sky_nishita.cpp')
-rw-r--r--intern/sky/source/sky_nishita.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/sky/source/sky_nishita.cpp b/intern/sky/source/sky_nishita.cpp
index f1eab181189..d00ef51e152 100644
--- a/intern/sky/source/sky_nishita.cpp
+++ b/intern/sky/source/sky_nishita.cpp
@@ -316,7 +316,7 @@ void SKY_nishita_skymodel_precompute_texture(float *pixels,
for (int y = start_y; y < end_y; y++) {
/* sample more pixels toward the horizon */
- float latitude = (M_PI_2_F + half_lat_step) * sqr((float)y / height);
+ float latitude = (M_PI_2_F + half_lat_step) * sqr(float(y) / height);
float *pixel_row = pixels + (y * width * stride);
for (int x = 0; x < half_width; x++) {