Fix #33485: cycles OSL now autodetects the presence of emission and transparent
closures to enable multiple importance sampling and transparent shadows.
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
CCL_NAMESPACE_BEGIN
|
||||
|
||||
class ImageManager;
|
||||
class Shadr;
|
||||
class Shader;
|
||||
|
||||
/* Texture Mapping */
|
||||
|
||||
@@ -220,6 +220,8 @@ public:
|
||||
class TransparentBsdfNode : public BsdfNode {
|
||||
public:
|
||||
SHADER_NODE_CLASS(TransparentBsdfNode)
|
||||
|
||||
bool has_surface_transparent() { return true; }
|
||||
};
|
||||
|
||||
class VelvetBsdfNode : public BsdfNode {
|
||||
@@ -255,6 +257,8 @@ class EmissionNode : public ShaderNode {
|
||||
public:
|
||||
SHADER_NODE_CLASS(EmissionNode)
|
||||
|
||||
bool has_surface_emission() { return true; }
|
||||
|
||||
bool total_power;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user