Normalize
From MaratisWiki
(Difference between revisions)
Dahnielson (Talk | contribs) |
Dahnielson (Talk | contribs) m |
||
Line 1: | Line 1: | ||
{{lua-function|normalize|vector}} | {{lua-function|normalize|vector}} | ||
− | Returns a normalized vector | + | Returns a normalized vector. |
+ | |||
+ | {{lua-function-param|vector|vector to normalize}} | ||
vec = normalize(vec3(x, y, z)) | vec = normalize(vec3(x, y, z)) |
Latest revision as of 18:54, 8 February 2014
normalize(vector)
Returns a normalized vector.
-
vector
: vector to normalize
vec = normalize(vec3(x, y, z))