threejs-worldgen
    Preparing search index...

    Function applyImpostorWeather

    • Applies the same weather as the mesh materials to a baked impostor's material (threejs-scatter bakeImpostor), in the same order: instance tint, then burn, then wetness and snow, from the same treeUniforms (or weather inputs), so nothing pops at the mesh-to-impostor switch. Snow settles by the baked normal; with a foliage mask (impostorFoliageMask) burn scorches leaves and chars bark separately, and burn and damage drop leaf cards. Bake with clear weather. Bark branches broken by damage stay on the impostor.

      Parameters

      Returns void