Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Properties

aniso?: number
channels?: null | TextureChannelsType

Sets the number of color channels for the texture format. It can be used as an alternative to format. Default: null

copy?: boolean
data?: null | TextureImageData

The following properties, data and copy are mutually exclusive.

flipY?: boolean
height?: number
mipmap?: boolean | number[][] | TextureMipmapHintType

If boolean, then it sets whether or not we should regenerate the mipmaps.

If a string, it allows you to specify a hint to the mipmap generator. If a hint is specified, then also the mipmaps will be regenerated.

Finally, mipmap can also be an array of arrays. In this case, every subarray will be one of the mipmaps, and you can thus use this option to manually specify the mipmaps of the image.

Default: false

premultiplyAlpha?: boolean
radius?: number
shape?: [number, number] | [number, number, TextureChannelsType]

Texture type. In many cases type can be inferred from the format and other information in the texture. However, in some situations it may still be necessary to set it manually. Default: 'uint8'

width?: number

Generated using TypeDoc