Tried rendering the sphere without success
All checks were successful
Gitea Actions Demo / Scan the project (push) Successful in 29s

This commit is contained in:
2024-01-02 16:02:24 +01:00
parent 8470304859
commit cf14c9a79e
9 changed files with 135 additions and 53 deletions

View File

@ -4,6 +4,7 @@ using System.Numerics;
namespace Nebulix.Rendering;
// TODO: make IDisposable
public class Shader
{
private readonly GL _glContext;
@ -21,7 +22,7 @@ public class Shader
_shaderProgramId = CreateProgram(vertexShader, fragmentShader);
}
public void Use() { _glContext.UseProgram(_shaderProgramId); }
public void Use() => _glContext.UseProgram(_shaderProgramId);
#region Set uniforms
public void SetInt(string name, int value)