Difference between revisions of "Texture:setWrap"
m |
m |
||
(2 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
− | Texture:setWrap( horiz, vert ) | + | Texture:setWrap( horiz, vert, depth ) |
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
{{param|WrapMode|horiz|Horizontal wrapping mode of the texture.}} | {{param|WrapMode|horiz|Horizontal wrapping mode of the texture.}} | ||
− | {{param|WrapMode|vert|Vertical wrapping mode of the texture.}} | + | {{param|WrapMode|vert (horiz)|Vertical wrapping mode of the texture.}} |
{{New feature|11.0| | {{New feature|11.0| | ||
− | {{param|WrapMode|depth|Wrapping mode for the z-axis of a [[TextureType|Volume texture]].}} | + | {{param|WrapMode|depth (horiz)|Wrapping mode for the z-axis of a [[TextureType|Volume texture]].}} |
}} | }} | ||
=== Returns === | === Returns === |
Latest revision as of 16:52, 28 May 2019
Sets the wrapping properties of a Texture.
This function sets the way a Texture is repeated when it is drawn with a Quad that is larger than the texture's extent, or when a custom Shader is used which uses texture coordinates outside of [0, 1]. A texture may be clamped or set to repeat in both horizontal and vertical directions.
Clamped textures appear only once (with the edges of the texture stretching to fill the extent of the Quad), whereas repeated ones repeat as many times as there is room in the Quad.
Function
Synopsis
Texture:setWrap( horiz, vert, depth )
Arguments
WrapMode horiz
- Horizontal wrapping mode of the texture.
WrapMode vert (horiz)
- Vertical wrapping mode of the texture.
WrapMode depth (horiz)
- Wrapping mode for the z-axis of a Volume texture.
Returns
Nothing.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info