Adds a new return type to the cellular sampler, based on the offset of the coordinates relative to the cell center. More about this is in "Goal of the PR"
What Issues Does This Fix?
Currently there is no way to create terrain EQs with cells where the result is based on the position relative to the center. It is possible to do something similar by combining distance and angle samplers, but this will result in worse performance and confusion than this approach.
Licensing
[x] I am the original author of this code, and I am willing to release it
under GPLv3.
[ ] I am not the original author of this code, but it is in public domain or
released under GPLv3 or a
compatible license.
Goal of the PR
Minor addition to the cellular sampler in the noise functions plugin. Adds another return type which also uses the noioseLookup, but instead of sampling at the center of the cell, it passes the offset of the current position to the center of the cell to the sampler. This allows manipulations of a cell relative to the center, e.g. tilting the surface of a cell, or treating the left side of a cell different.
I am not too happy with the naming of the return type, ideas for improvement would be appreciated.
A follow up to the terra-docs repository will be added in a bit.
[x] Built
[x] Tested using the new return type in a config pack
Affects of the PR
Types of changes
[ ] Bug Fix
[ ] Build system
[ ] Documentation
[x] New Feature
[ ] Performance
[ ] Refactoring
[ ] Repository
[ ] Revert
[ ] Style
[ ] Tests
[ ] Translation
Compatiblity
[ ] Breaking
change
[x] Non-Breaking change.
Contribution Guidelines.
[x] I have read
the CONTRIBUTING.md
document in the root of the git repository.
[x] My code follows the code style for this
project.
Documentation
[x] My change requires a change to the documentation.
Pull Request
Brief description.
Adds a new return type to the cellular sampler, based on the offset of the coordinates relative to the cell center. More about this is in "Goal of the PR"
What Issues Does This Fix?
Currently there is no way to create terrain EQs with cells where the result is based on the position relative to the center. It is possible to do something similar by combining distance and angle samplers, but this will result in worse performance and confusion than this approach.
Licensing
Goal of the PR
Minor addition to the cellular sampler in the noise functions plugin. Adds another return type which also uses the noioseLookup, but instead of sampling at the center of the cell, it passes the offset of the current position to the center of the cell to the sampler. This allows manipulations of a cell relative to the center, e.g. tilting the surface of a cell, or treating the left side of a cell different.
I am not too happy with the naming of the return type, ideas for improvement would be appreciated.
A follow up to the terra-docs repository will be added in a bit.
Affects of the PR
Types of changes
Compatiblity
Contribution Guidelines.
CONTRIBUTING.md
document in the root of the git repository.Documentation
Testing