reckfellENGINE

VisualShaderNodeColorParameter

A Color parameter to be used within the visual shader graph.

On this page
class VisualShaderNodeColorParameterReckfellSharpInherits VisualShaderNodeParameter

A Color parameter to be used within the visual shader graph.

Translated to uniform vec4 in the shader language.

Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.

Constructors1

VisualShaderNodeColorParameterConstructor
# VisualShaderNodeColorParameter
C#
public VisualShaderNodeColorParameter();

Properties2

DefaultValueProperty
# DefaultValue
C#
public Color DefaultValue { get; set; }

RGBA uniform initializer used when DefaultValueEnabled is enabled. It does not replace an explicit ShaderMaterial parameter value. ColorParameter has one vec4 output; wire its fourth component separately to Alpha for transparency.

DefaultValueEnabledProperty
# DefaultValueEnabled
C#
public bool DefaultValueEnabled { get; set; }

Controls whether shader generation includes DefaultValue in the uniform declaration. The stored color is separate. This flag neither clears material overrides nor creates a global parameter registry entry.

Methods4

GetDefaultValueColor
# GetDefaultValue
C#
public Color GetDefaultValue();

RGBA uniform initializer used when DefaultValueEnabled is enabled. It does not replace an explicit ShaderMaterial parameter value. ColorParameter has one vec4 output; wire its fourth component separately to Alpha for transparency.

Returns Color
IsDefaultValueEnabledbool
# IsDefaultValueEnabled
C#
public bool IsDefaultValueEnabled();

Controls whether shader generation includes DefaultValue in the uniform declaration. The stored color is separate. This flag neither clears material overrides nor creates a global parameter registry entry.

Returns bool
SetDefaultValuevoid
# SetDefaultValue
C#
public void SetDefaultValue(Color value);

RGBA uniform initializer used when DefaultValueEnabled is enabled. It does not replace an explicit ShaderMaterial parameter value. ColorParameter has one vec4 output; wire its fourth component separately to Alpha for transparency.

Parameters
NameTypeDefault
valueColor—
value

RGBA color; Alpha is not automatically wired.

SetDefaultValueEnabledvoid
# SetDefaultValueEnabled
C#
public void SetDefaultValueEnabled(bool enabled);

Controls whether shader generation includes DefaultValue in the uniform declaration. The stored color is separate. This flag neither clears material overrides nor creates a global parameter registry entry.

Parameters
NameTypeDefault
enabledbool—
enabled

true to generate an initializer from DefaultValue.

Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.