Skip to content

Commit

Permalink
Fixed wrong weights for sky irrad generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Glatzel committed Jun 3, 2017
1 parent 22c0a56 commit b124a89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IntrinsicCore/src/IntrinsicCoreSkyModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ project(const ArHosekSkyModelState& p_SkyModelState,
weightSum += 1.0f;
}

result *= glm::pi<float>() / weightSum;
result *= (4.0f * glm::pi<float>()) / weightSum;
return result;
}
}
Expand Down

0 comments on commit b124a89

Please sign in to comment.