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

  • Posts: 154
1 year 5 months ago #1 by seri14
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;
The following user(s) said Thank You: crosire

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