hex-world
    Preparing search index...

    Function styleFoliage

    • Restyle the seasonal foliage tint. Safe on any material — one without the uniforms (a pine that got attachSnow but no tint, the road) is skipped, which is how a conifer opts out of turning: it simply never receives this patch.

      Parameters

      Returns void

      // Warmer, more varied autumn on the broadleaf material.
      styleFoliage(broadleafMat, { autumn: 0xd2601a, variance: 0.7 });
      // A bush is foliage all over — skip the green test.
      styleFoliage(bushMat, { select: 0 });