PolyhedralDev / Terra

Voxel world generation modding platform
MIT License
670 stars 88 forks source link

Add salted version of sampler functions in EXPRESSION samplers #455

Closed pumken closed 2 months ago

pumken commented 7 months ago

Pull Request

A slightly less naïve implementation of #371. Every sampler specified in an EXPRESSION sampler generates two functions: sampler(Point) and samplerSalted(Point, double). The salted version requires an additional, mandatory argument for salt, per Astrash's recommendation.

May require a documentation change to record the existence of this feature and to warn against duplication of function names. Though highly unlikely, this change breaks config packs that result in name duplication.

The previous PR was closed so that the git history can be made cleaner without the need for revert commits.

Again open for any feedback at all.

Closes #371.

Changelog

Checklist

Mandatory checks

Types of changes

Compatibility

Documentation

Testing

Licensing