Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/scene/shader_nodes.h
| Show First 20 Lines • Show All 1,524 Lines • ▼ Show 20 Lines | public: | ||||
| ShaderNode *clone(ShaderGraph *graph) const; | ShaderNode *clone(ShaderGraph *graph) const; | ||||
| char *input_default_value(); | char *input_default_value(); | ||||
| void add_input(ustring name, SocketType::Type type, const int flags = 0); | void add_input(ustring name, SocketType::Type type, const int flags = 0); | ||||
| void add_output(ustring name, SocketType::Type type); | void add_output(ustring name, SocketType::Type type); | ||||
| SHADER_NODE_NO_CLONE_CLASS(OSLNode) | SHADER_NODE_NO_CLONE_CLASS(OSLNode) | ||||
| bool has_surface_emission() | |||||
| { | |||||
| return has_emission; | |||||
| } | |||||
| /* Ideally we could better detect this, but we can't query this now. */ | /* Ideally we could better detect this, but we can't query this now. */ | ||||
| bool has_spatial_varying() | bool has_spatial_varying() | ||||
| { | { | ||||
| return true; | return true; | ||||
| } | } | ||||
| bool has_volume_support() | bool has_volume_support() | ||||
| { | { | ||||
| return true; | return true; | ||||
| } | } | ||||
| virtual int get_feature() | virtual int get_feature() | ||||
| { | { | ||||
| return ShaderNode::get_feature() | KERNEL_FEATURE_NODE_RAYTRACE; | return ShaderNode::get_feature() | KERNEL_FEATURE_NODE_RAYTRACE; | ||||
| } | } | ||||
| virtual bool equals(const ShaderNode & /*other*/) | virtual bool equals(const ShaderNode & /*other*/) | ||||
| { | { | ||||
| return false; | return false; | ||||
| } | } | ||||
| string filepath; | string filepath; | ||||
| string bytecode_hash; | string bytecode_hash; | ||||
| bool has_emission; | |||||
| }; | }; | ||||
| class NormalMapNode : public ShaderNode { | class NormalMapNode : public ShaderNode { | ||||
| public: | public: | ||||
| SHADER_NODE_CLASS(NormalMapNode) | SHADER_NODE_CLASS(NormalMapNode) | ||||
| void attributes(Shader *shader, AttributeRequestSet *attributes); | void attributes(Shader *shader, AttributeRequestSet *attributes); | ||||
| bool has_attribute_dependency() | bool has_attribute_dependency() | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 88 Lines • Show Last 20 Lines | |||||