|
rigComponent 0.1.1
RigKit pack API - rigComponent
|
Portable indexed colour table. More...
#include <rigComponent/src/CPalette.h>
Public Member Functions | |
| glm::vec4 | shaded (int index, int darkerSteps) const |
| Walk shadeNext darkerSteps times from index. | |
Static Public Member Functions | |
| static CPalette | default16 () |
| Default 16-slot palette with simple ramps toward black/grey. | |
Public Attributes | |
| std::array< int, kCount > | shadeNext {} |
| Next darker palette index for shade ramps; -1 = stop. | |
Portable indexed colour table.
Speaks rig.pixel.palette.
Contract field is colors (rgba[]). shadeNext is a host extension for shade ramps. Faces may index this via CMesh::facePalette. No GPU handles.