Skip to content

EntropyCanvas::ShaderParameterDef

Parameter definition for a shader. More…

#include <ShaderAsset.h>

Name
EntropyEngine::Networking::PropertyTypetype
Native property type (Float32, Vec3, Texture2D, etc.).
std::stringname
Parameter name (e.g., “baseColor”, “roughness”, “albedoMap”).
std::stringdisplayName
Display name for UI.
std::optional< EntropyEngine::Networking::PropertyValue >defaultValue
Native typed default value (optional).
std::map< std::string, std::string >attributes
UI metadata attributes (key-value pairs, e.g., {“Range”, “0,1”}, {“Color”, ""}).
struct EntropyCanvas::ShaderParameterDef;

Parameter definition for a shader.

Describes a shader parameter (uniform) that can be set on materials. Uses native PropertyType enum for type-safe parameter definitions.

EntropyEngine::Networking::PropertyType type = EntropyEngine::Networking::PropertyType::Float32;

Native property type (Float32, Vec3, Texture2D, etc.).

std::string name;

Parameter name (e.g., “baseColor”, “roughness”, “albedoMap”).

std::string displayName;

Display name for UI.

std::optional< EntropyEngine::Networking::PropertyValue > defaultValue;

Native typed default value (optional).

std::map< std::string, std::string > attributes;

UI metadata attributes (key-value pairs, e.g., {“Range”, “0,1”}, {“Color”, ""}).


Updated on 2026-01-26 at 17:14:35 -0500