Sampler - a builder for a GLTF sampler object. Defines filtering and wrapping modes for a texture.

Hierarchy

  • default<
        {
            magFilter: MagFilterType;
            minFilter: MinFilterType;
            wrapS: WrapMode;
            wrapT: WrapMode;
        },
    >
    • Sampler

Accessors

  • get MagFilterTypes(): { LINEAR: 9729; NEAREST: 9728 }
  • Returns { LINEAR: 9729; NEAREST: 9728 }

  • get MinFilterTypes(): {
        LINEAR: 9729;
        LINEAR_MIPMAP_LINEAR: 9987;
        LINEAR_MIPMAP_NEAREST: 9985;
        NEAREST: 9728;
        NEAREST_MIPMAP_LINEAR: 9986;
        NEAREST_MIPMAP_NEAREST: 9984;
    }
  • Returns {
        LINEAR: 9729;
        LINEAR_MIPMAP_LINEAR: 9987;
        LINEAR_MIPMAP_NEAREST: 9985;
        NEAREST: 9728;
        NEAREST_MIPMAP_LINEAR: 9986;
        NEAREST_MIPMAP_NEAREST: 9984;
    }

  • get WrapModes(): { CLAMP_TO_EDGE: 33071; MIRRORED_REPEAT: 33648; REPEAT: 10497 }
  • Returns { CLAMP_TO_EDGE: 33071; MIRRORED_REPEAT: 33648; REPEAT: 10497 }

Methods

  • Sets the magFilter mode for this sampler

    Parameters

    • magFilter: 9728 | 9729

    Returns Sampler

    this

  • Sets the minFilter mode for this sampler

    Parameters

    • minFilter: 9728 | 9729 | 9984 | 9985 | 9986 | 9987

    Returns Sampler

    this

  • Sets the S (U) wrapping mode for this sampler

    Parameters

    • wrapS: 10497 | 33071 | 33648

    Returns Sampler

    this

  • Sets the T (V) wrapping mode for this sampler

    Parameters

    • wrapT: 10497 | 33071 | 33648

    Returns Sampler

    this