Redefine shading classes: glsl program is now separate from shader

class, which are derived to manage uniform variables.
This commit is contained in:
brunoherbelin
2020-03-29 00:22:56 +01:00
parent 29507bfc09
commit a36ec5ffeb
12 changed files with 441 additions and 145 deletions

View File

@@ -11,7 +11,6 @@
#define ABS_DIFF(a, b) ( (a) < (b) ? (b - a) : (a - b) )
#define SIGN(a) (((a) < 0) ? -1.0 : 1.0)
#define CLAMP(x, low, high) (((x) > (high)) ? (high) : (((x) < (low)) ? (low) : (x)))
#define CLAMP(x, low, high) (((x) > (high)) ? (high) : (((x) < (low)) ? (low) : (x)))
#define EPSILON 0.00001
#define LOG100(val) (50.0/log(10.0)*log((float)val + 1.0))
#define EXP100(val) (exp(log(10.0)/50.0*(float)(val))-1.0)