Skip to content
View source

Vec4Generated

Category: Types

Four Floats, a pixel’s r g b a; see Vec2.

Vec4

Four Floats, a pixel’s r g b a; see Vec2.

Returns Function Category
Vec4 abs(x: Vec4) math
Vec4 acos(x: Vec4) math
Vec4 asin(x: Vec4) math
Vec4 atan(x: Vec4) math
Vec4 ceil(x: Vec4) math
Vec4 clamp(x: Vec4, low: Float, high: Float) math
Vec4 clamp(x: Vec4, low: Vec4, high: Vec4) math
Vec4 cos(x: Vec4) math
Vec4 cosh(x: Vec4) math
Vec4 degrees(x: Vec4) math
Float distance(a: Vec4, b: Vec4) math
Float dot(a: Vec4, b: Vec4) math
DVec4 double(x: Vec4) conversion
DVec4 dvec4(v: Vec4) construction
Vec4 exp(x: Vec4) math
Vec4 exp2(x: Vec4) math
Vec4 float(x: IVec4) conversion
Vec4 float(x: DVec4) conversion
Vec4 floor(x: Vec4) math
Vec4 fma(a: Vec4, b: Vec4, c: Vec4) math
Vec4 fract(x: Vec4) math
IVec4 int(x: Vec4) conversion
Vec4 inversesqrt(x: Vec4) math
Float length(v: Vec4) math
Vec4 log(x: Vec4) math
Vec4 log2(x: Vec4) math
Mat4 mat4(c0: Vec4, c1: Vec4, c2: Vec4, c3: Vec4) construction
Vec4 max(a: Vec4, b: Float) math
Vec4 max(a: Vec4, b: Vec4) math
Vec4 min(a: Vec4, b: Float) math
Vec4 min(a: Vec4, b: Vec4) math
Vec4 mix(a: Vec4, b: Vec4, t: Float) math
Vec4 mix(a: Vec4, b: Vec4, t: Vec4) math
Vec4 mod(x: Vec4, y: Vec4) math
Vec4 mod(x: Vec4, y: Float) math
Vec4 normalize(v: Vec4) math
Vec4 pow(base: Vec4, exponent: Float) math
Vec4 pow(base: Vec4, exponent: Vec4) math
Vec4 radians(x: Vec4) math
Vec4 refract(incident: Vec4, normal: Vec4, eta: Float) math
Vec4 round(x: Vec4) math
Vec4 saturate(x: Vec4) math
Vec4 sign(x: Vec4) math
Vec4 sin(x: Vec4) math
Vec4 sinh(x: Vec4) math
Vec4 smoothstep(low: Float, high: Float, x: Vec4) math
Vec4 smoothstep(low: Vec4, high: Vec4, x: Vec4) math
Vec4 sqrt(x: Vec4) math
Vec4 step(edge: Float, x: Vec4) math
Vec4 step(edge: Vec4, x: Vec4) math
Vec4 tan(x: Vec4) math
Vec4 tanh(x: Vec4) math
Vec4 trunc(x: Vec4) math
Vec4 vec4(x: Float, y: Float, z: Float, w: Float) construction
Vec4 vec4(x: Int, y: Int, z: Int, w: Int) construction
Vec4 vec4(xyz: Vec3, w: Float) construction
Vec4 vec4(xy: Vec2, zw: Vec2) construction
Vec4 vec4(xy: Vec2, z: Float, w: Float) construction
Vec4 vec4(x: Float, yzw: Vec3) construction