Skip to main content

Module texture

Module texture 

Source
Expand description

Unity textures (Texture2D): the pixel format, the mip chain from the object or its streamed resource, colour space, how the texture is used, and its sampler state.

Unity stores rows bottom first (row 0 is v = 0, its texture origin being bottom-left); the bytes are returned as stored.

Structs§

UnityTexture
A Texture2D as stored.

Enums§

TextureFormat
The pixel formats of Unity’s TextureFormat this reader names. Crunched formats (28, 29, 64, 65) need Unity’s crunch decoder and are refused.

Constants§

USAGE_NORMAL_DXT5NM
Unity’s TextureUsageMode for a normal map stored as DXT5nm: X in alpha, Y in green.
USAGE_NORMAL_PLAIN
Unity’s TextureUsageMode for a normal map stored as RGB.