Export (0) Print
Expand All
abs
all
any
cos
ddx
ddy
dot
dst
exp
fma
lit
log
mad
max
min
mul
pow
rcp
sin
tan
Expand Minimize

noise

Generates a random value using the Perlin-noise algorithm.

ret noise(x)

 

Parameters

ItemDescription

x

[in] A floating-point vector from which to generate Perlin noise.

 

Return Value

The Perlin noise value within a range between -1 and 1.

Remarks

Perlin noise values change smoothly from one point to another over a space, creating natural looking, randomly generated values. You can use Perlin noise to generate procedural textures for effects like smoke and fire.

Type Description

Name Template Type Component Type Size
xvector float any
retscalar float 1

 

Minimum Shader Model

This function is supported in the following shader models.

Shader ModelSupported
Shader Model 2 (DirectX HLSL) and higher shader modelsno
Shader Model 1 (DirectX HLSL) yes (tx_1_0 only)

 

See also

Intrinsic Functions (DirectX HLSL)

 

 

Community Additions

ADD
Show:
© 2014 Microsoft