This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
gamedev:textureproperties:variation [2019/05/08 20:13] – dragonlord | gamedev:textureproperties:variation [2019/05/09 08:40] – created dragonlord | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | {{tag>dragengine | + | {{tag> |
<WRAP youarehere> | <WRAP youarehere> | ||
[[: | [[: | ||
</ | </ | ||
- | <WRAP boxheader> | + | ====== |
- | ====== | + | |
- | </ | + | Enables texture variation in U and V direction. |
- | <WRAP boxcontent> | + | |
- | |Texture Property Name|variation.u, | + | |
- | |Description|Enables texture variation in U and V direction| | + | |
|Excepted Data Source|1 component value| | |Excepted Data Source|1 component value| | ||
|Data Range|0 to 1| | |Data Range|0 to 1| | ||
Line 15: | Line 13: | ||
|Affected Modules|Graphic| | |Affected Modules|Graphic| | ||
|Linked Properties|-| | |Linked Properties|-| | ||
- | </ | ||
====== Description ====== | ====== Description ====== | ||
+ | |||
The **variation.u** and **variation.v** texture property define if texture variations are used along the texture U and V direction. If texture variations are enabled various texture properties can be defines using a depth of larger than 1. The integral part of texture coordinates in the U and V direction are used to randomly pick a layer from these properties. A value of 0 indicates that texture variations are not used along the U and V direction. A value of 1 indicates that texture variations are used along the U and V direction. | The **variation.u** and **variation.v** texture property define if texture variations are used along the texture U and V direction. If texture variations are enabled various texture properties can be defines using a depth of larger than 1. The integral part of texture coordinates in the U and V direction are used to randomly pick a layer from these properties. A value of 0 indicates that texture variations are not used along the U and V direction. A value of 1 indicates that texture variations are used along the U and V direction. | ||
Line 25: | Line 23: | ||
====== Examples ====== | ====== Examples ====== | ||
+ | |||
<WRAP group> | <WRAP group> | ||
<WRAP half column box centeralign> | <WRAP half column box centeralign> |