UI.fxh for maintain UI type compatible since 3.x

2 years 1 month ago #1 by seri14
This is used by all effect for maintain compatible the ui_type.

  • 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):

#include "UI.fxh"

uniform float fOpacity < __UNIFORM_COLOR_FLOAT1
	ui_label = "Texture Opacity";
	ui_tooltip = "The opacity of the applying texture";
> = 0.5;
The following user(s) said Thank You: crosire

Please Log in or Create an account to join the conversation.