Class: JPG

JPG

JPG is an importer for JPG images as textures. Normally this yields a Texture2D object.

The options property supports the following settings:

  • equiToCube: This will assume the jpg contains an equirectangular texture that needs to be transformed to a cube map. Yields a TextureCube object.
  • cubeSize: An optional size for the cube map size.
  • heightMap: This will assume the jpg contains height map data that needs to be smoothed out to counter the staircase effect exhibited by the limited 8-bit precision. The data will be encoded in 32-bit RGBA.
  • generateMipmaps: This will cause mipmaps to be generated. Defaults to true.

new JPG()

Author:
  • derschmale <http://www.derschmale.com>

Extends

  • Importer