Skip to content

AtlasData

Class Documentation

Edit documentation

The plain atlas provider: one rectangle of the named texture, drawn as a single quad stretched over the icon.

It is one of the two providers a UI effect element accepts; see IUiEffectTextureDataProvider.

Properties

mTextureUV

Vec4 = [0, 0, 1, 1]
Edit documentation

The rectangle to draw, as {left, top, right, bottom} in pixels of the source resolution. Left and right are divided by mTextureSourceResolutionWidth, top and bottom by mTextureSourceResolutionHeight.

The result is used as it comes out: no half-pixel inset, and no clamp to the texture.