BBMOD_MaterialPropertyBlock.set_int3

A function defined in BBMOD_MaterialPropertyBlock.gml

set_int3(_name, _value)

Description

Sets a value of a BBMOD_EShaderUniformType.Int3 property.

Arguments

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

Returns

Struct.BBMOD_MaterialPropertyBlock Returns self.

Example

var _materialProps = new BBMOD_MaterialPropertyBlock();
_materialProps.set_int3("u_vInt3", new BBMOD_Vec3(1, 2, 3));

Note

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

See also

BBMOD_MaterialPropertyBlock.set

Do you find this page helpful?

Copyright © 2023, BlueBurn. Built on September 11, 2023 using GMDoc.