Function gpuNewTex

    • Allocate an RGBA32F texture (data in 0–1 floats, or null). linear requests bilinear filtering (continuous Field sampling), silently downgraded to NEAREST where OES_texture_float_linear is unavailable.

      Parameters

      • w: number
      • h: number
      • data: Float32Array<ArrayBufferLike> | null = null
      • linear: boolean = false

      Returns WebGLTexture