threejs-worldgen
    Preparing search index...

    Function createTerrainUniforms

    • Creates the uniforms behind a terrain material. Exported so the TerrainUniforms type is documented in full; WorldTerrain creates and updates them for you.

      Parameters

      Returns {
          brightness: UniformNode<"float", number>;
          bump: UniformNode<"float", number>;
          detail: UniformNode<"float", number>;
          detailDistance: UniformNode<"float", number>;
          detailScale: UniformNode<"float", number>;
          mudColor: UniformNode<"color", Color>;
          rockColor: UniformNode<"color", Color>;
          rockSlope: UniformNode<"float", number>;
          sandBand: UniformNode<"float", number>;
          sandColor: UniformNode<"color", Color>;
          saturation: UniformNode<"float", number>;
          snowColor: UniformNode<"color", Color>;
          snowTemperature: UniformNode<"float", number>;
      }

      • brightness: UniformNode<"float", number>

        Brightness multiplier.

      • bump: UniformNode<"float", number>

        Bump strength.

      • detail: UniformNode<"float", number>

        Detail strength.

      • detailDistance: UniformNode<"float", number>

        Detail fade distance, metres.

      • detailScale: UniformNode<"float", number>

        Detail noise scale.

      • mudColor: UniformNode<"color", Color>

        Mud colour (linear).

      • rockColor: UniformNode<"color", Color>

        Rock colour (linear).

      • rockSlope: UniformNode<"float", number>

        Slope (rise/run) where bare rock takes over (synced from the world's ground.rockSlope).

      • sandBand: UniformNode<"float", number>

        Height band around sea level that is sand, metres (synced from ground.sandBand).

      • sandColor: UniformNode<"color", Color>

        Sand colour (linear).

      • saturation: UniformNode<"float", number>

        Saturation multiplier.

      • snowColor: UniformNode<"color", Color>

        Snow colour (linear).

      • snowTemperature: UniformNode<"float", number>

        Temperature (°C) below which snow settles (synced from ground.snowTemperature).