Declared shader inputs beyond the standard surface set (uTexture0, uSurfaceSize, uSurfaceFocused, etc.). More...
#include <PhosphorSurface/SurfaceShaderEffect.h>
Public Attributes | |
| QString | id |
| QString | name |
| QString | type |
| "float", "int", "bool", "color" | |
| QString | description |
| Optional one-line tooltip for the settings UI. | |
| QString | group |
| Optional accordion group name for the settings UI. | |
| QVariant | defaultValue |
| JSON/QML key: default. | |
| QVariant | minValue |
| JSON/QML key: min. | |
| QVariant | maxValue |
| JSON/QML key: max. | |
| QVariant | stepValue |
| Optional slider step; JSON/QML key: step. QML falls back to (max-min)/200. | |
Declared shader inputs beyond the standard surface set (uTexture0, uSurfaceSize, uSurfaceFocused, etc.).
An ORDERED list of { id, type, default, min, max, ... } entries, not a map: declaration order is what assigns the customParams / customColors slots, so the sequence is part of the contract. A duplicate id is dropped at parse time, because two entries sharing one would redefine the same p_ macro and fail the shader compile. Field names mirror the regular shader pack format (AnimationShaderEffect::ParameterInfo / PhosphorRendering::ShaderRegistry::ParameterInfo) so surface packs and overlay/animation packs can share QML editor components.
C++ field name vs JSON key asymmetry: the QVariant fields are suffixed Value because default is a C++ keyword; the wire- format and QML-facing keys are the bare forms (default/min/max/step). See toJson() / fromJson() in surfaceshadereffect.cpp for the mapping.
| QVariant PhosphorSurfaceShaders::SurfaceShaderEffect::ParameterInfo::defaultValue |
JSON/QML key: default.
| QString PhosphorSurfaceShaders::SurfaceShaderEffect::ParameterInfo::description |
Optional one-line tooltip for the settings UI.
| QString PhosphorSurfaceShaders::SurfaceShaderEffect::ParameterInfo::group |
Optional accordion group name for the settings UI.
| QString PhosphorSurfaceShaders::SurfaceShaderEffect::ParameterInfo::id |
| QVariant PhosphorSurfaceShaders::SurfaceShaderEffect::ParameterInfo::maxValue |
JSON/QML key: max.
| QVariant PhosphorSurfaceShaders::SurfaceShaderEffect::ParameterInfo::minValue |
JSON/QML key: min.
| QString PhosphorSurfaceShaders::SurfaceShaderEffect::ParameterInfo::name |
| QVariant PhosphorSurfaceShaders::SurfaceShaderEffect::ParameterInfo::stepValue |
Optional slider step; JSON/QML key: step. QML falls back to (max-min)/200.
| QString PhosphorSurfaceShaders::SurfaceShaderEffect::ParameterInfo::type |
"float", "int", "bool", "color"