hex-world
    Preparing search index...

    Function foliageUniforms

    • Builds the appearance uniform set matching FOLIAGE_GLSL.

      summer is the reference the whole palette is applied relative to — pass the surface's own as-authored green (a scatter material's color, the pack's grassland color) and midsummer comes out untouched. See FOLIAGE_GLSL.

      The rest of opts seeds the palette, for a surface whose defaults should differ from a plant's: the terrain shader turns straw rather than rust, because ground cover does not do what a canopy does.

      Parameters

      Returns Record<string, THREE.IUniform>