Skip to content

Documentation / scene / hash21

Function: hash21()

hash21(scope, p): PBShaderExp

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

Generate random float value from a vec2

Parameters

scope

PBInsideFunctionScope

Current shader scope

p

PBShaderExp

random seed

Returns

PBShaderExp

random float value

Released under the MIT License.