Vec4

4D float vector (vec4 in GLSL)

4D float vectors can be converted from sf::Color instances. Each color channel is normalized from integers in [0, 255] to floating point values in [0, 1].

Vec4 zeroVector;
auto vector = Vec4(1.f, 2.f, 3.f, 4.f);
auto color = Vec4(Color.Cyan);
alias Vec4 = Vector4!(float)

Meta