Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/render/nodes.h
| Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | |||||
| /* Nodes */ | /* Nodes */ | ||||
| class TextureNode : public ShaderNode { | class TextureNode : public ShaderNode { | ||||
| public: | public: | ||||
| explicit TextureNode(const NodeType *node_type) : ShaderNode(node_type) {} | explicit TextureNode(const NodeType *node_type) : ShaderNode(node_type) {} | ||||
| TextureMapping tex_mapping; | TextureMapping tex_mapping; | ||||
| }; | }; | ||||
| class UDIMTextureNode : public ShaderNode { | |||||
| public: | |||||
| SHADER_NODE_NO_CLONE_CLASS(UDIMTextureNode); | |||||
| ~UDIMTextureNode(); | |||||
| ShaderNode *clone() const; | |||||
| void attributes(Shader *shader, AttributeRequestSet *attributes); | |||||
| virtual int get_group() { return NODE_GROUP_LEVEL_3; } | |||||
| ImageManager *image_manager; | |||||
| struct ImageTile { | |||||
| bool is_float; | |||||
| bool is_linear; | |||||
| int slot; | |||||
| ustring filename; | |||||
| bool used; | |||||
| int get_encoding(NodeImageColorSpace color_space); | |||||
| }; | |||||
| bool use_alpha; | |||||
| ustring filename; | |||||
| NodeImageColorSpace color_space; | |||||
| InterpolationType interpolation; | |||||
| ExtensionType extension; | |||||
| int start_tile; | |||||
| int columns; | |||||
| ustring uv_map; | |||||
| vector<ImageTile> tiles; | |||||
| }; | |||||
| /* Any node which uses image manager's slot should be a subclass of this one. */ | /* Any node which uses image manager's slot should be a subclass of this one. */ | ||||
| class ImageSlotTextureNode : public TextureNode { | class ImageSlotTextureNode : public TextureNode { | ||||
| public: | public: | ||||
| explicit ImageSlotTextureNode(const NodeType *node_type) : TextureNode(node_type) { | explicit ImageSlotTextureNode(const NodeType *node_type) : TextureNode(node_type) { | ||||
| special_type = SHADER_SPECIAL_TYPE_IMAGE_SLOT; | special_type = SHADER_SPECIAL_TYPE_IMAGE_SLOT; | ||||
| } | } | ||||
| int slot; | int slot; | ||||
| }; | }; | ||||
| ▲ Show 20 Lines • Show All 908 Lines • Show Last 20 Lines | |||||