smrendererv3/SMCode/SM.Base/TestShader.cs
Michel Fedde 9889366317 16.09.2020
~ Fixed shading import
~ Fixed "Plate" mesh
~ Move the dll files into "SMCode"
2020-09-16 19:12:53 +02:00

25 lines
No EOL
499 B
C#

using OpenTK;
using OpenTK.Graphics.OpenGL4;
using SM.Base.StaticObjects;
using SM.OGL.Shaders;
namespace SM.Base
{
public class TestShader : GenericShader
{
public TestShader(ShaderFileCollection shaderFileFiles) : base(shaderFileFiles)
{
}
public void Draw(Matrix4 mvp)
{
GL.UseProgram(this);
Uniforms["MVP"].SetMatrix4(mvp);
DrawObject(Plate.Object, true);
GL.UseProgram(0);
}
}
}