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