From 7e71be261bb88d0a7c1dcef7b19995317fdb51ef Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Fri, 20 Nov 2015 18:18:27 +0500 Subject: Cycles: Fix filter glossy being broken after recent changes Basically we can not use sharp closure as a substitude when filter glossy is used. This is because we can not blur sharp reflection/refraction. This is quite quick and not really clean implementation. Not really happy with manual handling of original settings, but this is as good as we can do in the quick patch. It's a good acknowledgment and we now can re-consider some aspects of graph simplification to make such cases more natively supported. P.S. This failure would have been shown by our regression tests, so please, bother a bit to run Cycles's test sweep before doing such optimizations. --- intern/cycles/render/svm.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'intern/cycles/render/svm.h') diff --git a/intern/cycles/render/svm.h b/intern/cycles/render/svm.h index 4b390fb88f9..e48fe5e32ed 100644 --- a/intern/cycles/render/svm.h +++ b/intern/cycles/render/svm.h @@ -53,7 +53,10 @@ public: class SVMCompiler { public: SVMCompiler(ShaderManager *shader_manager, ImageManager *image_manager); - void compile(Shader *shader, vector& svm_nodes, int index); + void compile(Scene *scene, + Shader *shader, + vector& svm_nodes, + int index); void stack_assign(ShaderOutput *output); void stack_assign(ShaderInput *input); -- cgit v1.2.3