Terra (Fabric/Forge/Paper)

Terra (Fabric/Forge/Paper)

74.2k Downloads

Image NoiseSampler

dfsek opened this issue ยท 3 comments

commented

An implementation of NoiseSampler that uses an image with a configurable color channel to pull noise values from.

commented

Also this should for the most part maintain compatibility with old noise configs. (We can have sampler default to NOISE for backwards compat)
The only thing i see breaking are configs with normalizers, and that's an easy fix, besides, I doubt normalizers are widely known/used.

commented

this will also go along with a reimplementation of noise configs to make them more modular.

The reimplementation will use a nested approach for things like normalizers, and will allow definition of "sampler type" at the root, rather than just noise type.
Each sampler type will have a separate sub-section. Mock config:

noise:
  sampler: NORMALIZER
  type: LINEAR
  linear:
    min: 0
    max: 1
  input:
    sampler: NOISE
    type: Cellular
    cellular:
      return: NoiseLookup
      lookup:
        sampler: NOISE
        type: OpenSimplex2
        fractal:
          type: FBm
          octaves: 2
        frequency: 0.01
    frequency: 0.005

This also gives us a chance to rename some of the not ideally named things from FastNoise (looking at you, cellular distance function types)

commented

Implemented in e306a0f