Auburn / FastNoiseLite

Fast Portable Noise Library - C# C++ C Java HLSL GLSL JavaScript Rust Go
http://auburn.github.io/FastNoiseLite/
MIT License
2.77k stars 326 forks source link

FastNoiseLite.hlsl mixed-up comment Defaults #124

Closed awardell closed 8 months ago

awardell commented 10 months ago
/**
     * The distance function used in cellular noise calculations.
     * @remark Default: FNL_CELLULAR_FUNC_DISTANCE
     */
    fnl_cellular_distance_func cellular_distance_func;

    /**
     * The cellular return type from cellular noise calculations.
     * @remark Default: FNL_CELLULAR_RETURN_TYPE_EUCLIEANSQ
     */
    fnl_cellular_return_type cellular_return_type;

"DISTANCE" and "EUCLIDEAN" seem to be swapped. Haven't checked if other languages have the same issue.

Auburn commented 10 months ago

Yeah that look like a find and replace mistake

tjammer commented 8 months ago

I just noticed the same in the C bindings.