vec3
A 3D vector from three values, often a color without alpha.
vec3(x: Val, y: Val, z: Val): Expr
Import math from shaders/std and use math.vec3.
Parameters
| Name | Type | Notes |
|---|---|---|
x | Val | |
y | Val | |
z | Val |
Example
const warmWhite = vec3(1, 0.96, 0.9)
See also
vec2— A 2D vector from two values.vec4— A 4D vector, usually the final color with alpha.splat3— One number copied into all three channels of a vec3.
Used by
Aurora, Blob, Chrome, Crystal, FlowingGradient, Frost, Goo, Heatmap, Hologram, Holographic, Irradiance, MeshGradient, Nebula, PixelThrow, Plastic, ReactionDiffusion, Sparkle, StudioBackground, Surface3D, TimeTrail, Voxels, Water