Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/render/nodes.h
| Show First 20 Lines • Show All 439 Lines • ▼ Show 20 Lines | |||||
| class EmissionNode : public ShaderNode { | class EmissionNode : public ShaderNode { | ||||
| public: | public: | ||||
| SHADER_NODE_CLASS(EmissionNode) | SHADER_NODE_CLASS(EmissionNode) | ||||
| void constant_fold(const ConstantFolder& folder); | void constant_fold(const ConstantFolder& folder); | ||||
| virtual ClosureType get_closure_type() { return CLOSURE_EMISSION_ID; } | virtual ClosureType get_closure_type() { return CLOSURE_EMISSION_ID; } | ||||
| bool has_surface_emission() { return true; } | bool has_surface_emission() { return true; } | ||||
| bool has_volume_support() { return true; } | |||||
| float3 color; | float3 color; | ||||
| float strength; | float strength; | ||||
| float surface_mix_weight; | float surface_mix_weight; | ||||
| }; | }; | ||||
| class BackgroundNode : public ShaderNode { | class BackgroundNode : public ShaderNode { | ||||
| public: | public: | ||||
| Show All 35 Lines | public: | ||||
| SHADER_NODE_BASE_CLASS(VolumeNode) | SHADER_NODE_BASE_CLASS(VolumeNode) | ||||
| void compile(SVMCompiler& compiler, ShaderInput *param1, ShaderInput *param2); | void compile(SVMCompiler& compiler, ShaderInput *param1, ShaderInput *param2); | ||||
| virtual int get_group() { return NODE_GROUP_LEVEL_1; } | virtual int get_group() { return NODE_GROUP_LEVEL_1; } | ||||
| virtual int get_feature() { | virtual int get_feature() { | ||||
| return ShaderNode::get_feature() | NODE_FEATURE_VOLUME; | return ShaderNode::get_feature() | NODE_FEATURE_VOLUME; | ||||
| } | } | ||||
| virtual ClosureType get_closure_type() { return closure; } | virtual ClosureType get_closure_type() { return closure; } | ||||
| virtual bool has_volume_support() { return true; } | |||||
| float3 color; | float3 color; | ||||
| float density; | float density; | ||||
| float volume_mix_weight; | float volume_mix_weight; | ||||
| ClosureType closure; | ClosureType closure; | ||||
| virtual bool equals(const ShaderNode& /*other*/) | virtual bool equals(const ShaderNode& /*other*/) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 479 Lines • Show Last 20 Lines | |||||