Merged changes in the trunk up to revision 42116.
[blender.git] / source / blender / render / intern / source / pixelshading.c
index a78cc3e228826b91eca75f418c5c6081429bae0b..b62484a6995697808c580a357031469e6b80ed03 100644 (file)
@@ -587,7 +587,7 @@ void shadeSunView(float col_r[3], const float view[3])
                        xyz_to_rgb(colorxyz[0], colorxyz[1], colorxyz[2], &sun_collector[0], &sun_collector[1], &sun_collector[2], 
                                           lar->sunsky->sky_colorspace);
                        
-                       ramp_blend(lar->sunsky->skyblendtype, col_r, col_r+1, col_r+2, lar->sunsky->skyblendfac, sun_collector);
+                       ramp_blend(lar->sunsky->skyblendtype, col_r, lar->sunsky->skyblendfac, sun_collector);
                }
        }
 }