|
Kemena3D
|
A node in the shader graph: a typed operation with input/output pins. More...
#include <kshadernode.h>
Static Public Member Functions | |
| static const char * | typeName (kShaderNodeType t) |
| Returns a human-readable name for a shader node type. | |
Public Attributes | |
| int | id = 0 |
| Unique node id within the graph. | |
| kShaderNodeType | type = kShaderNodeType::ConstFloat |
| Operation this node performs. | |
| kString | name |
| Display name of the node. | |
| float | posX = 200.f |
| float | posY = 200.f |
| Node position in the editor canvas. | |
| std::vector< kShaderPin > | inputs |
| Input pins. | |
| std::vector< kShaderPin > | outputs |
| Output pins. | |
| float | valueFloat [4] = { 0.f, 0.f, 0.f, 1.f } |
| Constant value for Const* nodes. | |
| kString | valueStr |
| Texture uniform name or swizzle mask. | |
| bool | valueBool = false |
| Generic boolean payload. | |
A node in the shader graph: a typed operation with input/output pins.
Carries its editor position and a small type-specific payload (constant value, texture uniform name or swizzle mask, and a boolean flag).
|
static |
Returns a human-readable name for a shader node type.
| t | Node type to name. |
| int kemena::kShaderNode::id = 0 |
Unique node id within the graph.
| std::vector<kShaderPin> kemena::kShaderNode::inputs |
Input pins.
| kString kemena::kShaderNode::name |
Display name of the node.
| std::vector<kShaderPin> kemena::kShaderNode::outputs |
Output pins.
| float kemena::kShaderNode::posX = 200.f |
| float kemena::kShaderNode::posY = 200.f |
Node position in the editor canvas.
| kShaderNodeType kemena::kShaderNode::type = kShaderNodeType::ConstFloat |
Operation this node performs.
| bool kemena::kShaderNode::valueBool = false |
Generic boolean payload.
| float kemena::kShaderNode::valueFloat[4] = { 0.f, 0.f, 0.f, 1.f } |
Constant value for Const* nodes.
| kString kemena::kShaderNode::valueStr |
Texture uniform name or swizzle mask.