pass ambient light to shader
parent
47242e4f52
commit
60ebb19e24
|
@ -260,6 +260,9 @@ namespace Kav
|
||||||
DiffuseLitSpriteEffect.View = camera.View;
|
DiffuseLitSpriteEffect.View = camera.View;
|
||||||
DiffuseLitSpriteEffect.Projection = camera.Projection;
|
DiffuseLitSpriteEffect.Projection = camera.Projection;
|
||||||
|
|
||||||
|
DiffuseLitSpriteEffect.AmbientColor =
|
||||||
|
ambientLight.Color.ToVector3();
|
||||||
|
|
||||||
DiffuseLitSpriteEffect.DirectionalLightDirection =
|
DiffuseLitSpriteEffect.DirectionalLightDirection =
|
||||||
directionalLight.Direction;
|
directionalLight.Direction;
|
||||||
DiffuseLitSpriteEffect.DirectionalLightColor =
|
DiffuseLitSpriteEffect.DirectionalLightColor =
|
||||||
|
|
Loading…
Reference in New Issue