threejs-worldgen
    Preparing search index...

    Function createBirdUniforms

    • Creates the uniforms of one bird species' material. Exported so BirdUniforms is documented.

      Returns {
          back: UniformNode<"color", Color>;
          belly: UniformNode<"color", Color>;
          states: UniformNode<"vec4", Vector4>;
          tip: UniformNode<"color", Color>;
          wing: UniformNode<"vec2", Vector2>;
      }

      • back: UniformNode<"color", Color>

        Back and upper-wing colour.

      • belly: UniformNode<"color", Color>

        Belly and under-wing colour.

      • states: UniformNode<"vec4", Vector4>

        x = wetness, y = snow, z = burn, w = damage.

      • tip: UniformNode<"color", Color>

        Wing-tip colour.

      • wing: UniformNode<"vec2", Vector2>

        x = tip length (share of the span), y = flap amplitude, radians.