PointLights work now

This commit is contained in:
Michel Fedde 2020-12-15 15:37:21 +01:00
parent 1551af28cc
commit 1ed03fec3f
3 changed files with 34 additions and 13 deletions

View file

@ -1,7 +1,19 @@
namespace SM2D.Light
using System.Collections.Generic;
using SM.OGL.Shaders;
namespace SM2D.Light
{
public class PointLight : LightObject
{
internal override int Type { get; } = 0;
public float Power = 5;
internal override void SetUniforms(Dictionary<string, Uniform> uniforms)
{
base.SetUniforms(uniforms);
uniforms["Power"].SetUniform1(Power);
}
}
}