Why doesn't this work:
DBP equivalent of a simple noise function:
function noise1( x )
x = (x<<13)^x
out# = ( 1.0 - ( (x * (x * x * 15731 + 789221) + 1376312589) && 0x7ffffff) / 1073741824.0)
endfunction out#
The problem seems to be this line:
x = (x<<13)^x. The bit shift seems to work as it should but the squaring is what's the issue where x is greater than 2 it'll just result in the same value.
My question is why does it do this and what should it be doing?
I imagine it just results in an integers max range but if this is the case, why doesn't this appear to be apparent in other languages since it's the same calculation?
"Get in the Van!" - Van B