BBMOD_MaterialPropertyBlock.set_float4

A function defined in BBMOD_MaterialPropertyBlock.gml

set_float4(_name, _value)

Description

Sets a value of a BBMOD_EShaderUniformType.Float4 property.

Arguments

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

Returns

Struct.BBMOD_MaterialPropertyBlock Returns self.

Example

var _materialProps = new BBMOD_MaterialPropertyBlock();
_materialProps.set_float4("u_vFloat4", new BBMOD_Vec4(1.0, 2.0, 3.0, 4.0));
_materialProps.set_float4("u_vQuaternion", new BBMOD_Quaternion());

Note

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

See also

BBMOD_MaterialPropertyBlock.set

Do you find this page helpful?

Copyright © 2024, BlueBurn. Built on January 21, 2024 using GMDoc.