Skip to content

Documentation / scene / interleavedGradientNoise

Function: interleavedGradientNoise()

interleavedGradientNoise(scope, c): PBShaderExp

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

Calculate interleaved gradient noise

Parameters

scope

PBInsideFunctionScope

current shader scope

c

PBShaderExp

2d position at where to calculate noise

Returns

PBShaderExp

noise value

Released under the MIT License.