Skip to content

Commit

Permalink
Update diffuse BSSRDF function to be maybe more theoretically correct…
Browse files Browse the repository at this point in the history
… form.
  • Loading branch information
tatsy committed Sep 22, 2015
1 parent 9c84e4b commit 179c445
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/bssrdf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ namespace spica {
DiffuseBSSRDF DiffuseBSSRDF::scaled(double sc) const {
DiffuseBSSRDF ret(*this);
for (size_t i = 0; i < ret._distances.size(); i++) {
ret._distances[i] /= sc;
ret._distances[i] *= sc;
ret._colors[i] /= (sc * sc);
}
return std::move(ret);
Expand Down

0 comments on commit 179c445

Please sign in to comment.