Kemena3D
Loading...
Searching...
No Matches
kemena::kShaderPin Struct Reference

A single input or output connection point on a shader node. More...

#include <kshadernode.h>

Public Attributes

int id = 0
 Unique pin id within the graph.
kString name
 Display name of the pin.
kPinType type = kPinType::Float
 Data type carried by the pin.
bool isOutput = false
 True if this is an output pin.
float defFloat = 0.0f
 Default scalar value when unconnected.
float defVec [4] = { 0.f, 0.f, 0.f, 1.f }
 Default vector value when unconnected.
float uiX = 0
float uiY = 0
 Cached screen-space position (set during draw).

Detailed Description

A single input or output connection point on a shader node.

Holds the pin's type, a default value used when no link feeds it, and a cached screen-space position populated during node-editor drawing.

Member Data Documentation

◆ defFloat

float kemena::kShaderPin::defFloat = 0.0f

Default scalar value when unconnected.

◆ defVec

float kemena::kShaderPin::defVec[4] = { 0.f, 0.f, 0.f, 1.f }

Default vector value when unconnected.

◆ id

int kemena::kShaderPin::id = 0

Unique pin id within the graph.

◆ isOutput

bool kemena::kShaderPin::isOutput = false

True if this is an output pin.

◆ name

kString kemena::kShaderPin::name

Display name of the pin.

◆ type

kPinType kemena::kShaderPin::type = kPinType::Float

Data type carried by the pin.

◆ uiX

float kemena::kShaderPin::uiX = 0

◆ uiY

float kemena::kShaderPin::uiY = 0

Cached screen-space position (set during draw).


The documentation for this struct was generated from the following file: