threejs-worldgen
    Preparing search index...

    Function snowMaterial

    • A lit snow material (three.js MeshSSSNodeMaterial): white, rough, faintly translucent, greyer and smoother where compacted. Jp is a float node (the plastic volume ratio; 1 = fresh, e.g. a varying from the particles). Use it for static snow cover around a simulated patch so the two match.

      Parameters

      • s: SnowShading
      • Jp: any = ...
      • normal: any = normalWorld

      Returns MeshSSSNodeMaterial