A function defined in BBMOD_MaterialPropertyBlock.gml
set_float(_name, _value)
Sets a value of a BBMOD_EShaderUniformType.Float property.
Name | Type | Description |
---|---|---|
_name | String |
The name of the property (shader uniform name). |
_value | Real |
The property value. |
Struct.BBMOD_MaterialPropertyBlock
Returns self
.
var _materialProps = new BBMOD_MaterialPropertyBlock();
_materialProps.set_float("u_fFloat", 1.0);
This is a shorthand for set(name, BBMOD_EShaderUniformType.Float, value)
.
BBMOD_MaterialPropertyBlock.set
Copyright © 2024, BlueBurn. Built on September 07, 2024 using GMDoc.