## Normalize Calculate the unit vector in the same direction as the input vector ### Các phiên bản ```glsl float normalize(float x) vec2 normalize(vec2 x) vec3 normalize(vec3 x) vec4 normalize(vec4 x) ``` ### Các tham số ```x``` specifies the vector to normalize. ### Mô tả ```normalize()``` returns a vector with the same direction as its parameter, ```x```, but with length 1. ### Tham khảo thêm [length()](/glossary/?lan=vi&search=length)