fixed some invalid conditionals in RoughDiffuse, which kept texturing from working
parent
f9733089fd
commit
9824c000fd
|
@ -254,7 +254,7 @@ public:
|
||||||
if (child->getClass()->derivesFrom(MTS_CLASS(Texture))) {
|
if (child->getClass()->derivesFrom(MTS_CLASS(Texture))) {
|
||||||
if (name == "reflectance" || name == "diffuseReflectance")
|
if (name == "reflectance" || name == "diffuseReflectance")
|
||||||
m_reflectance = static_cast<Texture *>(child);
|
m_reflectance = static_cast<Texture *>(child);
|
||||||
if (name == "alpha")
|
else if (name == "alpha")
|
||||||
m_alpha = static_cast<Texture *>(child);
|
m_alpha = static_cast<Texture *>(child);
|
||||||
else
|
else
|
||||||
BSDF::addChild(name, child);
|
BSDF::addChild(name, child);
|
||||||
|
|
Loading…
Reference in New Issue