More generating script glue

This commit is contained in:
Simon Lübeß
2025-07-17 10:16:58 +02:00
parent edfcfd3b20
commit 0a53ff48f9
11 changed files with 2307 additions and 74 deletions
+9 -1
View File
@@ -9,11 +9,19 @@ namespace GlitchyEngine.Graphics;
/// </summary>
public class Material : Asset
{
internal enum ShaderVariableType : byte
{
Bool,
Float,
Int,
UInt
}
public void SetVariable(string name, float4 value)
{
unsafe
{
ScriptGlue.Material_SetVariable(_uuid, name, ScriptGlue.ShaderVariableType.Float, 1, 4, 1, &value, sizeof(float4));
ScriptGlue.Material_SetVariable(_uuid, name, ShaderVariableType.Float, 1, 4, 1, &value, sizeof(float4));
}
}