directional light

pull/1/head
cosmonaut 2020-08-26 17:03:02 -07:00
parent 92379f1ae9
commit ac52efc836
3 changed files with 4 additions and 4 deletions

2
Kav

@ -1 +1 @@
Subproject commit 737cb68f8d352089ea88c925a8218c9578b481eb Subproject commit abd6b1af91c6ad9949c986ecae30e3ed699b3438

View File

@ -82,14 +82,14 @@ namespace KavTest
new Vector3(-1, 1, 1) new Vector3(-1, 1, 1)
)); ));
for (var i = 0; i < 64; i++) for (var i = 0; i < 1; i++)
{ {
var start = RandomHelper.RandomVector3(-5, 5); var start = RandomHelper.RandomVector3(-5, 5);
WorldBuilder.SendMessage(new LightBulbSpawnMessage( WorldBuilder.SendMessage(new LightBulbSpawnMessage(
new Transform3D(start.ToXNAVector(), Quaternion.Identity, new Vector3(0.1f, 0.1f, 0.1f)), new Transform3D(start.ToXNAVector(), Quaternion.Identity, new Vector3(0.1f, 0.1f, 0.1f)),
RandomHelper.RandomColor(), RandomHelper.RandomColor(),
5f, 10f,
RandomHelper.RandomLoop(start, -15, 15, 3, 10) RandomHelper.RandomLoop(start, -15, 15, 3, 10)
)); ));
} }

View File

@ -29,7 +29,7 @@ namespace KavTest.Renderers
{ {
foreach (var meshPart in mesh.MeshParts) foreach (var meshPart in mesh.MeshParts)
{ {
if (meshPart.Effect is GBufferEffect gBufferEffect) if (meshPart.Effect is DeferredPBR_GBufferEffect gBufferEffect)
{ {
gBufferEffect.AlbedoTexture = null; gBufferEffect.AlbedoTexture = null;
gBufferEffect.Albedo = overrideAlbedoComponent.Color; gBufferEffect.Albedo = overrideAlbedoComponent.Color;