BBMOD_MaterialPropertyBlock.set_matrix_array

A function defined in BBMOD_MaterialPropertyBlock.gml

set_matrix_array(_name, _value)

Description

Sets a value of a BBMOD_EShaderUniformType.MatrixArray property.

Arguments

Name Type Description
_name String The name of the property (shader uniform name).
_value Array The property value.

Returns

Struct.BBMOD_MaterialPropertyBlock Returns self.

Example

var _materialProps = new BBMOD_MaterialPropertyBlock();
_materialProps.set_matrix_array("u_mMatrixArray1", matrix_build_identity());
_materialProps.set_matrix_array("u_mMatrixArray2", new BBMOD_Matrix().Raw);

Note

This is a shorthand for set(name, BBMOD_EShaderUniformType.MatrixArray, value).

See also

BBMOD_MaterialPropertyBlock.set, BBMOD_Matrix

Do you find this page helpful?

Copyright © 2024, BlueBurn. Built on April 16, 2024 using GMDoc.