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.
This commit is contained in:
Sergey Sharybin
2015-11-20 18:18:27 +05:00
parent c4188c2bba
commit 7e71be261b
11 changed files with 160 additions and 53 deletions

View File

@@ -53,7 +53,10 @@ public:
class SVMCompiler {
public:
SVMCompiler(ShaderManager *shader_manager, ImageManager *image_manager);
void compile(Shader *shader, vector<int4>& svm_nodes, int index);
void compile(Scene *scene,
Shader *shader,
vector<int4>& svm_nodes,
int index);
void stack_assign(ShaderOutput *output);
void stack_assign(ShaderInput *input);