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:
Brecht Van Lommel
2012-12-12 06:51:06 +00:00
parent cf723e5e7c
commit 3759c10e5c
5 changed files with 58 additions and 15 deletions

View File

@@ -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;
};