Search Issue Tracker
Duplicate
Votes
0
Found in
5.6.0f3
Issue ID
915529
Regression
No
Mathf.PerlinNoise returns values outside the range 0 - 1
To reproduce:
1. Open attached Unity project "NoiseGen_2.zip"
2. Tools --> Noise Generator
3. Click Regen
4. Observe Console
Expected result: There should not be any logs in the console, because, according to the documentation, Mathf.PerlinNoise can only be in range of 0.0f to 1.0f (in some cases can slightly exceed 1.0f) and the script "NoiseGenerator.cs" script only prompts a message to the console if Mathf.PerlinNoise's value is less than 0
Actual result: Mathf.PerlinNoise sometimes gets a value of less than a zero which contradicts with the documentation
Reproduced on: 5.5.3p4, 5.6.1p1, 2017.1.0b7, 2017.2.0a1
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
This is a duplicate of issue #873181