Skip to content

Commit

Permalink
Updated uniform uint to float conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
matt77hias committed Apr 23, 2018
1 parent 87b766b commit 112fc33
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions MAGE/Shaders/shaders/rng.hlsli
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//-----------------------------------------------------------------------------

float UniformUintToFloat(uint u) {
// IEEE-754: 2^-24 = 0x33800000
return float(u & 0xFFFFFF) * asfloat(0x33800000);
}

Expand Down

0 comments on commit 112fc33

Please sign in to comment.