Skip to main content

Material.Lerp(Material start, Material end, number t )

Interpolate properties between two materials.

Parameters:

NameTypeDescription
startMaterialstart material
endMaterialend material
tnumberinterpolation variable [0-1]

Usage

---@type Material
local material;

---@type Material
local start;

---@type Material
local end;

---@type number
local t ;


material.Lerp(start, end, t )

Extra Detail

Makes all color and float values of a material be interpolated from start to end, based on t. When t is 0, all values are taken from start. When t is 1, all values are taken from end.