A function defined in BBMOD_MaterialPropertyBlock.gml
set_float2(_name, _value)
Sets a value of a BBMOD_EShaderUniformType.Float2 property.
Name | Type | Description |
---|---|---|
_name | String |
The name of the property (shader uniform name). |
_value | Struct.BBMOD_Vec2 |
The property value. |
Struct.BBMOD_MaterialPropertyBlock
Returns self
.
var _materialProps = new BBMOD_MaterialPropertyBlock();
_materialProps.set_float2("u_vFloat2", new BBMOD_Vec2(1.0, 2.0));
This is a shorthand for set(name, BBMOD_EShaderUniformType.Float2, value)
.
BBMOD_MaterialPropertyBlock.set
Copyright © 2025, BlueBurn. Built on January 04, 2025 using GMDoc.