Interact with Materials from scripts

This commit is contained in:
Simon Lübeß
2025-02-14 11:54:07 +01:00
parent e5437c6ff6
commit aaed4199d3
24 changed files with 739 additions and 64 deletions
+15
View File
@@ -0,0 +1,15 @@
using System.Diagnostics.SymbolStore;
using GlitchyEngine.Math;
namespace GlitchyEngine.Graphics;
public class Material : Asset
{
public void SetVariable(string name, float4 value)
{
unsafe
{
ScriptGlue.Material_SetVariable(_uuid, name, ScriptGlue.ShaderVariableType.Float, 1, 4, 1, &value, sizeof(float4));
}
}
}