fix #4 Sphere can be rendered with normals now. Calculation fo normals is however not working
All checks were successful
Gitea Actions Demo / Scan the project (push) Successful in 17s
All checks were successful
Gitea Actions Demo / Scan the project (push) Successful in 17s
This commit is contained in:
@ -35,6 +35,11 @@ public class Shader
|
||||
_glContext.Uniform1(_glContext.GetUniformLocation(_shaderProgramId, name), value);
|
||||
}
|
||||
|
||||
public void SetVector(string name, Vector3D<float> value)
|
||||
{
|
||||
_glContext.Uniform3(_glContext.GetUniformLocation(_shaderProgramId, name), value.X, value.Y, value.Z);
|
||||
}
|
||||
|
||||
public unsafe void SetMatrix(string name, Matrix4x4 matrix)
|
||||
{
|
||||
_glContext.UniformMatrix4(_glContext.GetUniformLocation(_shaderProgramId, name), 1, false, (float*) &matrix);
|
||||
|
Reference in New Issue
Block a user