Skip to main content

Material.SetMatrix(string name, Matrix4x4 value)

Sets a named matrix for the shader.

Parameters:

NameTypeDescription
namestringProperty name, e.g. "_CubemapRotation".
valueMatrix4x4Matrix value to set.

Usage

---@type Material
local material;

---@type string
local name;

---@type Matrix4x4
local value;


material.SetMatrix(name, value)