Page 1 of 1

SasUiControl - ColorPicker only RGB

Posted: 20 Aug 2012, 09:08
by GlareTechnologies
Hi,

float4 AmbientColor
<
string SasUiControl = "ColorPicker";
string SasUiLabel = "Ambient";
> = { 1.0f, 0.0f, 0.0f, 1.0f };

ColorPicker UI only let you define RGB values, but not explicitly the Alpha value (in the above example alpha is always 1).

So I have to define an extra alpha value

float AmbientAlpha
<
float SasUiMin = 0.0f;
float SasUiMax = 1.0f;
> = { 1.0f };

float3 AmbientColor
<
string SasUiControl = "ColorPicker";
string SasUiLabel = "AmbientColor";
> = { 1.0f, 0.0f, 0.0f };

Any chance that you also support Alpha in your ColorPicker, as you already do in gen-texture ?

Cheers,

Bastian