mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Allow resetting material variable
This commit is contained in:
@@ -15,4 +15,9 @@ public class Material : Asset
|
||||
ScriptGlue.Material_SetVariable(_uuid, name, ScriptGlue.ShaderVariableType.Float, 1, 4, 1, &value, sizeof(float4));
|
||||
}
|
||||
}
|
||||
|
||||
public void ResetVariable(string name)
|
||||
{
|
||||
ScriptGlue.Material_ResetVariable(_uuid, name);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user