PointLights work now
This commit is contained in:
parent
1551af28cc
commit
1ed03fec3f
3 changed files with 34 additions and 13 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue