Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/render/nodes.h
| Show First 20 Lines • Show All 183 Lines • ▼ Show 20 Lines | public: | ||||
| NODE_SOCKET_API(float, sun_intensity) | NODE_SOCKET_API(float, sun_intensity) | ||||
| NODE_SOCKET_API(float, sun_elevation) | NODE_SOCKET_API(float, sun_elevation) | ||||
| NODE_SOCKET_API(float, sun_rotation) | NODE_SOCKET_API(float, sun_rotation) | ||||
| NODE_SOCKET_API(float, altitude) | NODE_SOCKET_API(float, altitude) | ||||
| NODE_SOCKET_API(float, air_density) | NODE_SOCKET_API(float, air_density) | ||||
| NODE_SOCKET_API(float, dust_density) | NODE_SOCKET_API(float, dust_density) | ||||
| NODE_SOCKET_API(float, ozone_density) | NODE_SOCKET_API(float, ozone_density) | ||||
| NODE_SOCKET_API(float3, vector) | NODE_SOCKET_API(float3, vector) | ||||
| ImageHandle handle; | GET_SET(ImageHandle, handle) | ||||
| float get_sun_size() | float get_sun_size() | ||||
| { | { | ||||
| /* Clamping for numerical precision. */ | /* Clamping for numerical precision. */ | ||||
| return fmaxf(sun_size, 0.0005f); | return fmaxf(sun_size, 0.0005f); | ||||
| } | } | ||||
| }; | }; | ||||
| ▲ Show 20 Lines • Show All 220 Lines • ▼ Show 20 Lines | public: | ||||
| /* Parameters. */ | /* Parameters. */ | ||||
| NODE_SOCKET_API(ustring, filename) | NODE_SOCKET_API(ustring, filename) | ||||
| NODE_SOCKET_API(NodeTexVoxelSpace, space) | NODE_SOCKET_API(NodeTexVoxelSpace, space) | ||||
| NODE_SOCKET_API(InterpolationType, interpolation) | NODE_SOCKET_API(InterpolationType, interpolation) | ||||
| NODE_SOCKET_API(Transform, tfm) | NODE_SOCKET_API(Transform, tfm) | ||||
| NODE_SOCKET_API(float3, vector) | NODE_SOCKET_API(float3, vector) | ||||
| /* Runtime. */ | /* Runtime. */ | ||||
| ImageHandle handle; | GET_SET(ImageHandle, handle) | ||||
| ImageParams image_params() const; | ImageParams image_params() const; | ||||
| virtual bool equals(const ShaderNode &other) | virtual bool equals(const ShaderNode &other) | ||||
| { | { | ||||
| const PointDensityTextureNode &other_node = (const PointDensityTextureNode &)other; | const PointDensityTextureNode &other_node = (const PointDensityTextureNode &)other; | ||||
| return ShaderNode::equals(other) && handle == other_node.handle; | return ShaderNode::equals(other) && handle == other_node.handle; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 1,184 Lines • ▼ Show 20 Lines | bool has_volume_support() | ||||
| return true; | return true; | ||||
| } | } | ||||
| virtual bool equals(const ShaderNode & /*other*/) | virtual bool equals(const ShaderNode & /*other*/) | ||||
| { | { | ||||
| return false; | return false; | ||||
| } | } | ||||
| string filepath; | GET_SET(string, filepath) | ||||
| string bytecode_hash; | GET_SET(string, bytecode_hash) | ||||
| }; | }; | ||||
| 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 102 Lines • Show Last 20 Lines | |||||