Switch-Toolbox/File_Format_Library/GL/Helpers/AlphaGLControl.cs
KillzXGaming 7cf2e9c571 Cleanup
2019-07-16 17:45:10 -04:00

24 lines
525 B
C#

using System;
using OpenTK;
using OpenTK.Graphics.OpenGL;
namespace FirstPlugin
{
public class AlphaGLControl
{
public bool EnableAlphaTest = false;
public AlphaFunction AlphaFunction;
public float AlphaTestRef = 0.5f;
public void LoadRenderPass()
{
if (EnableAlphaTest)
GL.Enable(EnableCap.AlphaTest);
else
GL.Disable(EnableCap.AlphaTest);
GL.AlphaFunc(AlphaFunction, AlphaTestRef);
}
}
}