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

  • seri14
  • Topic Author
More
5 years 1 month ago #1 by seri14 UI.fxh for maintain UI type compatible since 3.x was created 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.

We use cookies
We use cookies on our website. Some of them are essential for the operation of the forum. You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.