Events
Apr 8, 3 PM - May 28, 7 AM
Sharpen your AI skills and enter the sweepstakes to win a free Certification exam
Register now!This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Generates a random value using the Perlin-noise algorithm.
ret noise(x) |
---|
Item | Description |
---|---|
x |
[in] A floating-point vector from which to generate Perlin noise. |
The Perlin noise value within a range between -1 and 1.
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.
Name | Template Type | Component Type | Size |
---|---|---|---|
x | vector | float | any |
ret | scalar | float | 1 |
This function is supported in the following shader models.
Shader Model | Supported |
---|---|
Shader Model 2 (DirectX HLSL) and higher shader models | no |
Shader Model 1 (DirectX HLSL) | yes (tx_1_0 only) |
Events
Apr 8, 3 PM - May 28, 7 AM
Sharpen your AI skills and enter the sweepstakes to win a free Certification exam
Register now!