Skip to content

Documentation / scene / hash31

Function: hash31() ​

hash31(scope, p): PBShaderExp

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

Generate random float value from a vec3

Parameters ​

scope ​

PBInsideFunctionScope

Current shader scope

p ​

PBShaderExp

random seed

Returns ​

PBShaderExp

random float value

Released under the MIT License.