threejs-worldgen
    Preparing search index...

    Function createBarkMaterial

    • Bark (and the solid parts of cacti, succulents, bamboo and lily pads): vertex colours from the generator, furrows from seamless cylindrical noise with bump, optional dark birch marks, per-instance colour variation and wind sway. Weather: wet bark darkens and shines, snow settles on top, burn chars it black along the furrows first, damage breaks off side branches.

      Parameters

      Returns MeshStandardNodeMaterial