This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| get_noise_3d [2024/02/06 16:13] – justin | get_noise_3d [2024/02/06 16:14] (current) – justin | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| (WIP) | (WIP) | ||
| - | Returns the 3D noise value (a numeric value between -1.0 and 1.0) for the given X/Y/Z position. The randomly generated noise from which the value is retrieved is based on the global.noise_seed variable. This variable can be changed in order to generate a different noise pattern (the seed value must be an integer). | + | Returns the 3D noise value (a numeric value between -1.0 and 1.0) for the given X/Y/Z position. The randomly generated noise from which the value is retrieved is based on the **global.noise_seed** variable. This variable can be changed in order to generate a different noise pattern (the seed value must be an integer). |
| ====Signature: | ====Signature: | ||
| Line 16: | Line 16: | ||
| ^Return Value^Description^Type^ | ^Return Value^Description^Type^ | ||
| - | |Noise Value| |[[Number]]| | + | |Noise Value|Returns a value between -1.0 and 1.0.|[[Number]]| |
| ====Example: | ====Example: | ||