SDF-2D - v0.7.6
    Preparing search index...
    • Create a renderer, draw a 2D noise texture with it, then destroy the resources it used, returning the generated texture in the form of a canvas.

      Parameters

      • textureSize: ReadonlyVec2

        The resolution of the end result

      • scale: number

        A good starting value is 15

      • amplitude: number

        A good starting value is 1

      • ignoreWebGL2: boolean = false

        Ignore WebGL2, even when it's available

      Returns Promise<HTMLCanvasElement>