Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

A small fix to refractive albedo, is 1 only for materials with IOR

  • Loading branch information...
commit 8bd85181cfec6120bb084b0dc2ceb02ef14be3fa 1 parent 88beb5d
@tomas-davidovic tomas-davidovic authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/bsdf.hxx
View
2  src/bsdf.hxx
@@ -522,7 +522,7 @@ private:
float AlbedoRefract(const Material& aMaterial) const
{
- return 1.f;
+ return aMaterial.mIOR > 0.f ? 1.f : 0.f;
}
void GetComponentProbabilities(
Please sign in to comment.
Something went wrong with that request. Please try again.