mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
16 lines
367 B
C#
16 lines
367 B
C#
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));
|
|
}
|
|
}
|
|
}
|