mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 07:34:45 +00:00
Merge pull request #1536 from Azaezel/flagFix
opengl crashfix pow(x,y) needed to be passed matching vartypes.
This commit is contained in:
commit
c90dcdf54b
1 changed files with 3 additions and 3 deletions
|
|
@ -285,11 +285,11 @@ void fizzle(vec2 vpos, float visibility)
|
||||||
#define assert(condition, color) { if(!any(condition)) { OUT_col = color; return; } }
|
#define assert(condition, color) { if(!any(condition)) { OUT_col = color; return; } }
|
||||||
|
|
||||||
// Deferred Shading: Material Info Flag Check
|
// Deferred Shading: Material Info Flag Check
|
||||||
bool getFlag(float flags, int num)
|
bool getFlag(float flags, float num)
|
||||||
{
|
{
|
||||||
float process = round(flags * 255);
|
float process = round(flags * 255);
|
||||||
float squareNum = pow(2, num);
|
float squareNum = pow(2.0, num);
|
||||||
return (mod(process, pow(2, squareNum)) >= squareNum);
|
return (mod(process, pow(2.0, squareNum)) >= squareNum);
|
||||||
}
|
}
|
||||||
|
|
||||||
// #define TORQUE_STOCK_GAMMA
|
// #define TORQUE_STOCK_GAMMA
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue