Tried rendering the sphere without success
All checks were successful
Gitea Actions Demo / Scan the project (push) Successful in 29s
All checks were successful
Gitea Actions Demo / Scan the project (push) Successful in 29s
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user