cross
Function
Computes the cross product of two vec3 values, returning a vec3.
The signature and the sentence under each name are the compiler's own text at commit 26de7be8.
Syntax
declare function cross<V extends vec3>(a0: V, a1: V): Vdeclare function cross(a: vec3, b: vec3): vec3Parameters
Return value
Vvec3
Description
Undefined for other vector shapes.
Targets
- WGSL
-
cross(a, b) - GLSL ES 3.00
-
cross(a, b)