noise — generate values with a pseudo-random noise function
float noise1(
genType x)
;
vec2 noise2(
genType x)
;
vec3 noise3(
genType x)
;
vec4 noise4(
genType x)
;
noise1
, noise2
, noise3
and noise4
return
noise values (vector or scalar) based on the input value x
. The noise function is a stochastic function
that can be used to increase visual complexity. Values returned by the noise functions give the appearance of randomness,
but are not truly random. They are defined to have the following characteristics:
Function | Version 1.10 | Version 1.20 | Version 1.30 | Version 1.40 | Version 1.50 | Version 3.30 | Version 4.00 | Version 4.10 | Version 4.20 | Version 4.30 |
---|---|---|---|---|---|---|---|---|---|---|
noise1 | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y |
noise2 | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y |
noise3 | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y |
noise4 | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y |
Copyright © 2011 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.