Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2016-07-30 20:16:29 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2016-07-31 00:21:03 +0300
commitf4bcc97729c430aac16c41f7c012a0f4c1fe6bb2 (patch)
treecbef1067d255fb2c8a39fc554e04c52f8002d864 /intern/cycles/render
parent34a639bd0f47e21f830ebaf597046125bb07b7e0 (diff)
Fix Cycles OpenCL not always allocating enough space for closures.
Diffstat (limited to 'intern/cycles/render')
-rw-r--r--intern/cycles/render/nodes.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/intern/cycles/render/nodes.h b/intern/cycles/render/nodes.h
index 79d25d01176..28b40ba756d 100644
--- a/intern/cycles/render/nodes.h
+++ b/intern/cycles/render/nodes.h
@@ -350,6 +350,7 @@ public:
float roughness, anisotropy, rotation;
ClosureType distribution;
+ ClosureType get_closure_type() { return distribution; }
void attributes(Shader *shader, AttributeRequestSet *attributes);
};
@@ -385,6 +386,7 @@ public:
void simplify_settings(Scene *scene);
bool has_integrator_dependency();
+ ClosureType get_closure_type() { return distribution; }
float roughness;
ClosureType distribution, distribution_orig;
@@ -396,6 +398,7 @@ public:
void simplify_settings(Scene *scene);
bool has_integrator_dependency();
+ ClosureType get_closure_type() { return distribution; }
float roughness, IOR;
ClosureType distribution, distribution_orig;
@@ -407,6 +410,7 @@ public:
void simplify_settings(Scene *scene);
bool has_integrator_dependency();
+ ClosureType get_closure_type() { return distribution; }
float roughness, IOR;
ClosureType distribution, distribution_orig;
@@ -425,6 +429,7 @@ public:
SHADER_NODE_CLASS(SubsurfaceScatteringNode)
bool has_surface_bssrdf() { return true; }
bool has_bssrdf_bump();
+ ClosureType get_closure_type() { return falloff; }
float scale;
float3 radius;
@@ -519,6 +524,7 @@ public:
class HairBsdfNode : public BsdfNode {
public:
SHADER_NODE_CLASS(HairBsdfNode)
+ ClosureType get_closure_type() { return component; }
ClosureType component;
float offset;