Material.Lerp(Material start, Material end, number t )
Interpolate properties between two materials.
Parameters:
Name | Type | Description |
---|---|---|
start | Material | start material |
end | Material | end material |
t | number | interpolation 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.