Maths · function

mixColorInto

In-place mixColor for per-frame use — allocating here would be a hot-path bug.

Explained in Coordinates and units.

function mixColorInto(out: Vec3, a: Vec3, b: Vec3, t: number): void
import { mixColorInto } from '@driftengine/core';

Parameters

ParameterTypeDescription
outVec3
aVec3
bVec3
tnumber