Texture Object

Syntax:

webglRenderer.TextureObject(textureConfig)

TextureConfig:

Below are the list of texture config supports:

  • width: Texture width

  • height: Texture height

  • border:

  • format:

  • type:

  • wraps:

  • wrapsT

  • magFilter

  • minFilter:

  • mipMap:

Example:

var Texture = webglRenderer.TextureObject({
    width: webglRenderer.width * webglRenderer.pixelRatio,
    height: webglRenderer.height * webglRenderer.pixelRatio,
    border: 0,
    format: 'RGBA',
    type: 'UNSIGNED_BYTE',
    warpS: 'CLAMP_TO_EDGE',
    warpT: 'CLAMP_TO_EDGE',
    magFilter: 'LINEAR',
    minFilter: 'LINEAR',
    mipMap: false
});

Last updated