Texture:setWrap

Sets the wrap mode of a texture. The wrap mode controls how the texture is sampled when texture coordinates lie outside the usual 0 - 1 range. The default for both directions is repeat.

Texture:setWrap(horizontal, vertical)

Arguments

NameTypeDefaultDescription
horizontalWrapModeHow the texture should wrap horizontally.
verticalWrapModehorizontalHow the texture should wrap vertically.

Returns

Nothing

See also