Editing Darkplaces material system/Stages
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 101: | Line 101: | ||
:S = s * m00 + t * m10 + t0 | :S = s * m00 + t * m10 + t0 | ||
:T = s * m01 + t * m11 + t1 | :T = s * m01 + t * m11 + t1 | ||
− | :This is for use by programmers | + | :This is for use by programmers. |
'''Example''': | '''Example''': | ||
<span style="color:green">// Transform that does nothing</span> | <span style="color:green">// Transform that does nothing</span> | ||
<span style="color:blue">tcMod</span> transform 1 0 0 1 0 1 | <span style="color:blue">tcMod</span> transform 1 0 0 1 0 1 | ||
− | <span style="color:green">// Shift texture up by 1/128 of | + | <span style="color:green">// Shift texture T coordinate (usually up) by 1/128 of its size</span> |
<span style="color:blue">tcMod</span> transform 1 0 0 1 0 0.0078125 | <span style="color:blue">tcMod</span> transform 1 0 0 1 0 0.0078125 | ||