Material.SetVector

void SetVector(string name, Vec4 value)

Sets a shader parameter with the given name to the provided value. If no parameter is found, nothing happens, and the value is not set!

   
string name Name of the shader parameter.
Vec4 value New value for the parameter.
void SetVector(string name, Vec3 value)

Sets a shader parameter with the given name to the provided value. If no parameter is found, nothing happens, and the value is not set!

   
string name Name of the shader parameter.
Vec3 value New value for the parameter.
void SetVector(string name, Vec2 value)

Sets a shader parameter with the given name to the provided value. If no parameter is found, nothing happens, and the value is not set!

   
string name Name of the shader parameter.
Vec2 value New value for the parameter.




Found an issue with these docs, or have some additional questions? Create an Issue on Github!