API

Class TextureOptimization

Defines an optimization used to reduce the size of render target textures

Hierarchy (View Summary)

Index
  • Creates the TextureOptimization object

    Parameters

    • priority: number = 0

      defines the priority of this optimization (0 by default which means first in the list)

    • maximumSize: number = 1024

      defines the maximum sized allowed for textures (1024 is the default value). If a texture is bigger, it will be scaled down using a factor defined by the step parameter

    • step: number = 0.5

      defines the factor (0.5 by default) used to scale down textures bigger than maximum sized allowed.

    Returns TextureOptimization

maximumSize: number = 1024

[1024] Defines the maximum sized allowed for textures (1024 is the default value). If a texture is bigger, it will be scaled down using a factor defined by the step parameter

priority: number = 0

[0] Defines the priority of this optimization (0 by default which means first in the list)

step: number = 0.5

[0.5] Defines the factor (0.5 by default) used to scale down textures bigger than maximum sized allowed.