mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Shader like vectors for C# Scripting
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using GlitchyEngine.Math;
|
||||
using GlitchyEngine.Math.Attributes;
|
||||
|
||||
namespace GlitchyEngine.Math;
|
||||
|
||||
[Vector(typeof(Half), 2, "half")]
|
||||
[VectorCast(typeof(float2), true)]
|
||||
public partial struct half2
|
||||
{
|
||||
}
|
||||
|
||||
[Vector(typeof(Half), 3, "half")]
|
||||
[VectorCast(typeof(float3), true)]
|
||||
public partial struct half3
|
||||
{
|
||||
}
|
||||
|
||||
[Vector(typeof(Half), 4, "half")]
|
||||
[VectorCast(typeof(float4), true)]
|
||||
public partial struct half4
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user