TextureTools

Class used to host texture specific utilities

Hierarchy

  • TextureTools

Index

Methods

Static CreateResizedCopy

Find examples in Playground
  • CreateResizedCopy(texture: Texture, width: number, height: number, useBilinearMode?: boolean): Texture
  • Uses the GPU to create a copy texture rescaled at a given size

    Parameters

    • texture: Texture

      Texture to copy from

    • width: number

      defines the desired width

    • height: number

      defines the desired height

    • Optional useBilinearMode: boolean

      defines if bilinear mode has to be used

    Returns Texture

    the generated texture

Static GetEnvironmentBRDFTexture

Find examples in Playground
  • Gets an environment BRDF texture for a given scene

    Parameters

    • scene: Scene

      defines the hosting scene

    Returns BaseTexture

    the environment BRDF texture

Generated using TypeDoc