initial diffuse lit sprite effect

main
cosmonaut 2020-12-05 19:47:40 -08:00
parent f6f78eccbb
commit 4687d57b28
4 changed files with 10 additions and 7 deletions

2
Kav

@ -1 +1 @@
Subproject commit ae445d94d3ad642cbda297ab97349f6f53090151
Subproject commit 47242e4f52d11b16ec4bc5b630d5d58869dedd92

View File

@ -246,10 +246,10 @@ namespace KavTest
WorldBuilder.SendMessage(new BillboardSpriteSpawnMessage(
mushroomGuyTexture,
new Vector3(3, 1, 10),
1f,
Vector2.One,
Kav.SpriteBillboardConstraint.Horizontal
new Vector3(3, -2, 8),
0f,
new Vector2(mushroomGuyTexture.Width, mushroomGuyTexture.Height) * 0.025f,
Kav.SpriteBillboardConstraint.Full
));
// WorldBuilder.SendMessage(new StaticModelSpawnMessage(

View File

@ -22,7 +22,7 @@ namespace KavTest.Messages
SpriteBillboardConstraint billboardConstraint
) {
Texture = texture;
Origin = new Vector2(texture.Width / 2, texture.Height / 2);
Origin = new Vector2(texture.Width / 2, texture.Height);
Position = position;
Rotation = rotation;
Scale = scale;

View File

@ -204,7 +204,10 @@ namespace KavTest.Renderers
BillboardTarget,
camera,
ModelTransforms,
Sprites()
Sprites(),
AmbientLight,
PointLights,
DirectionalLight()
);
GraphicsDevice.SetRenderTarget(null);