Skip to content

Documentation / scene / hash11

Function: hash11()

hash11(scope, p): PBShaderExp

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

Generate random float value from a float

Parameters

scope

PBInsideFunctionScope

Current shader scope

p

number | PBShaderExp

random seed

Returns

PBShaderExp

random float value

Released under the MIT License.