Skip to content

Rust implementation works with 32bit float numbers #32

@EndrII

Description

@EndrII

Some time ago i detected that the rust implementation have absolutely different noise result of C implementation,

It turns out the issue wasn't just minor differences in the algorithm's implementation, but also the fact that the algorithm generates low-precision 32-bit numbers, which is extremely detrimental to the use of this library.

See https://github.com/KdotJPG/OpenSimplex2/blob/master/rust/smooth.rs#L47

Please switch to 64-bit numbers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions