This is used by all effect for maintain compatible the ui_type.
Features
- The color of alpha by float of single component will not converting to "input" type in old versions.
- You no longer need to make additional changes for old versions. for only change into the future.
Code (there may be miss cases):
gist.github.com/seri14/007e6193a9cbec128eb37aacf7785fa8
Sample:
#include "UI.fxh"
uniform float fOpacity < __UNIFORM_COLOR_FLOAT1
ui_label = "Texture Opacity";
ui_tooltip = "The opacity of the applying texture";
> = 0.5;