Hello Ventuzians!
THE FORUMS ARE CLOSED!

Please join our discord server HERE!! << click me :D

We are shutting our Ventuz Forum, but don't worry, it will all be archived for you to search in if you have a query. From now on, please add all your comments, questions or observations into our Discord Server

Thanks for the great time - see you on discord!!
Dee, Karol, Daniel and the whoooole Product and Support team!

SasUiControl - ColorPicker only RGB

Q and A about functionality and how to solve a special task for your application.

Moderator: Support

Post Reply
GlareTechnologies

SasUiControl - ColorPicker only RGB

Post by GlareTechnologies » 20 Aug 2012, 09:08

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

Post Reply