RedGPU API - v3.0.0-Alpha
    Preparing search index...

    Function projection

    • Generates a 2D projection matrix with the given bounds

      Parameters

      • out: mat3

        mat3 frustum matrix will be written into

      • width: number

        Width of your gl context

      • height: number

        Height of gl context

      Returns mat3

      out