awhig

06-16-2009, 02:43 PM

Hello All,

I want to write a shader that generates random numbers based on Gaussian Distribution in range [-X, X] or [0, X]. I thought of using noise*() where, * = 1,2,3,4, but unfortunately came to know, through this forum, that they are not supported on NVIDIA Cards.

(I have GeForce 8800GS).

Then I thought of writing my own code using rand(). I am doubtful whether is there a rand() in GLSL as in C programming?

Is there any other good suggestion to generate normally distribute random number generator without using rand()?

Guidance Appreciated.

I want to write a shader that generates random numbers based on Gaussian Distribution in range [-X, X] or [0, X]. I thought of using noise*() where, * = 1,2,3,4, but unfortunately came to know, through this forum, that they are not supported on NVIDIA Cards.

(I have GeForce 8800GS).

Then I thought of writing my own code using rand(). I am doubtful whether is there a rand() in GLSL as in C programming?

Is there any other good suggestion to generate normally distribute random number generator without using rand()?

Guidance Appreciated.