Skip to content

Documentation / scene / whiteNoise

Function: whiteNoise()

whiteNoise(scope, p): PBShaderExp

Defined in: libs/scene/src/shaders/noise.ts:193

Generate uniform distributed white noise from a vec2

Parameters

scope

PBInsideFunctionScope

Current shader scope

p

PBShaderExp

random seed

Returns

PBShaderExp

random float value

Released under the MIT License.