diff options
Diffstat (limited to 'intern/cycles/render/shader.h')
-rw-r--r-- | intern/cycles/render/shader.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/intern/cycles/render/shader.h b/intern/cycles/render/shader.h index 696e22bc3c9..7d896652196 100644 --- a/intern/cycles/render/shader.h +++ b/intern/cycles/render/shader.h @@ -139,6 +139,10 @@ public: Shader(); ~Shader(); + /* Checks whether the shader consists of just a emission node with fixed inputs that's connected directly to the output. + * If yes, it sets the content of emission to the constant value (color * strength), which is then used for speeding up light evaluation. */ + bool is_constant_emission(float3* emission); + void set_graph(ShaderGraph *graph); void tag_update(Scene *scene); void tag_used(Scene *scene); |