BBMOD_MaterialPropertyBlock.set_float_array

A function defined in BBMOD_MaterialPropertyBlock.gml

set_float_array(_name, _value)

Description

Sets a value of a BBMOD_EShaderUniformType.FloatArray 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_float_array("u_vFloatArray", [1.0, 2.0, 3.0, 4.0, 5.0]);

Note

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

See also

BBMOD_MaterialPropertyBlock.set

Do you find this page helpful?

Copyright © 2024, BlueBurn. Built on September 07, 2024 using GMDoc.