Skip to content

Documentation / scene / noise3D

Function: noise3D() ​

noise3D(scope, p): PBShaderExp

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

Calculate 3d noise by a 3d position

Parameters ​

scope ​

PBInsideFunctionScope

current shader scope

p ​

PBShaderExp

3d position at where to calculate noise

Returns ​

PBShaderExp

noise value between 0 and 1

Released under the MIT License.