Comments (2)
Thanks for looking at this, I had noticed it before but not gotten around to fixing it.
I think 3 is probably the best solution but use MaskedMul
. Also comparing vs +inf might be better than flt_max, if it also works.
from fastnoise2.
I was just putting together a PR, but looks like you beat me to the fix, and found another instance as well.
Your test is different than the one I was considering, and I'm surprised it is working since I would have expected that (NaN != Infinity)==true. Maybe the invSqrt is not making NaNs where I thought, just Inf?
Anyway, thanks for the great library!
from fastnoise2.
Related Issues (20)
- View zoom in Node Editor HOT 3
- Where to put ImGui when building noisetool HOT 2
- CMake with MSVC setup for debug mode HOT 2
- Compile on macOS ARM doesn't produce binary HOT 2
- GenUniformGrid2D scaled xstart and ystart
- Issues Using on Windows HOT 10
- Is there C bindings? HOT 4
- Could there be a way to get both the value and the gradient? HOT 2
- What do I use the voxel tool for? HOT 1
- Could there or is there a way to get the maximum and minimum possible returned value for a node tree HOT 1
- Does library has 1D noise? HOT 1
- API Documentation / best place to search for in source code HOT 1
- [Question] What's the range of the example cave generation nodes tree? HOT 6
- FastNoise2 asserts without RTTI HOT 19
- FastNoise2 is taking more time to generate a 2D grid than FastNoiseLite HOT 2
- Crash when using c# bindings HOT 4
- What does node performance measure? HOT 1
- Thread safety crash when launching noises from background thread. HOT 1
- Some Iffy Implementation in Unreal 5.4 (Or a Skill Issue on my part) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastnoise2.