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:
authorThomas Dinges <blender@dingto.org>2015-06-26 22:36:28 +0300
committerThomas Dinges <blender@dingto.org>2015-06-26 22:36:28 +0300
commitddeb8c595fa32a6d5a68614a6821a607398f86e8 (patch)
tree80f43f83baa976c54c8ef01fd01ea804d0d19550
parentc58b5acefdd1b8018bcd294b60cbd8e6cf4aa14b (diff)
Cleanup: Fix a typo in world MIS.
Found by Lukas Stockner, thanks!
-rw-r--r--intern/cycles/render/light.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/intern/cycles/render/light.cpp b/intern/cycles/render/light.cpp
index 1b7aa0ef52e..448bbc9a608 100644
--- a/intern/cycles/render/light.cpp
+++ b/intern/cycles/render/light.cpp
@@ -421,16 +421,16 @@ static void background_cdf(int start,
for(int i = start; i < end; i++) {
float sin_theta = sinf(M_PI_F * (i + 0.5f) / res);
float3 env_color = (*pixels)[i * res];
- float ave_luminamce = average(env_color);
+ float ave_luminance = average(env_color);
- cond_cdf[i * cdf_count].x = ave_luminamce * sin_theta;
+ cond_cdf[i * cdf_count].x = ave_luminance * sin_theta;
cond_cdf[i * cdf_count].y = 0.0f;
for(int j = 1; j < res; j++) {
env_color = (*pixels)[i * res + j];
- ave_luminamce = average(env_color);
+ ave_luminance = average(env_color);
- cond_cdf[i * cdf_count + j].x = ave_luminamce * sin_theta;
+ cond_cdf[i * cdf_count + j].x = ave_luminance * sin_theta;
cond_cdf[i * cdf_count + j].y = cond_cdf[i * cdf_count + j - 1].y + cond_cdf[i * cdf_count + j - 1].x / res;
}