pass ambient light to shader

instancing
cosmonaut 2020-12-05 19:58:29 -08:00
parent 47242e4f52
commit 60ebb19e24
1 changed files with 3 additions and 0 deletions

View File

@ -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 =