I2Djs-v3
  • Introduction to I2Djs
  • Getting Started
    • Installation
    • Quick Start
    • Resources
  • Guide
    • Canvas: Create-animate
    • SVG: Create-animate
    • WebGL: Create-animate
    • Data Join-Action
    • Animation-Chaining
    • Canvas: Textures & Sprite animation
    • Canvas: Heatmap
    • WebGL: Heatmap
    • WebGL: Custom Shaders
    • Canvas: GeoWorld Map with D3 modules
    • Canvas: Clipping, Masking, Pattern
    • SVG: Clipping, Masking, Pattern
    • I2Djs + Physics Engine - MatterJs
  • API Reference
    • Layers
      • Canvas Layer
      • SVG Layer
      • WebGL Layer
    • Elements API
    • Canvas additional features
    • WebGL additional features
      • Custom Shader
      • Geometry
      • Render Target
      • Texture Object
    • Join Action
    • Animation
    • Chaining
    • Path
    • Events
    • Behaviour
      • Zoom and Pan
      • Drag
  • Examples
    • Canvas
    • SVG
    • WebGL
Powered by GitBook
On this page

Was this helpful?

  1. API Reference
  2. WebGL additional features

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
});
PreviousRender TargetNextJoin Action

Last updated 5 years ago

Was this helpful?