Fix T44922: Split kernel renders black when using Bump node

Was missing feature detection in the BumpNode in the previous selective nodes
compilation commit.
This commit is contained in:
Sergey Sharybin 2015-06-02 11:53:10 +05:00
parent 660234bfba
commit 23b068ce8a
Notes: blender-bot 2023-02-14 09:03:49 +01:00
Referenced by issue #44922, GPU and CPU rendering differs (sponza test file again)
1 changed files with 4 additions and 0 deletions

View File

@ -651,6 +651,10 @@ class BumpNode : public ShaderNode {
public:
SHADER_NODE_CLASS(BumpNode)
bool has_spatial_varying() { return true; }
virtual int get_feature() {
/* TODO(sergey): Check for incoming links. */
return NODE_FEATURE_BUMP;
}
bool invert;
};