remove light bulb cube

main
cosmonaut 2020-10-19 18:34:57 -07:00
parent 56c837ac63
commit 10bb9dea5b
3 changed files with 31 additions and 31 deletions

2
Kav

@ -1 +1 @@
Subproject commit 8fa22260d2c06b7a94c4a906bfefbaf3cfb03aec Subproject commit ed5a7df6143582f93589e18594d48316aaf3dca3

View File

@ -21,7 +21,7 @@ namespace KavTest.Spawners
AddComponent(entity, new Transform3DComponent(message.Transform)); AddComponent(entity, new Transform3DComponent(message.Transform));
AddComponent(entity, new PointLightComponent(message.Color, message.Intensity)); AddComponent(entity, new PointLightComponent(message.Color, message.Intensity));
AddComponent(entity, new MoveAlongCurve3DComponent(message.Curve)); AddComponent(entity, new MoveAlongCurve3DComponent(message.Curve));
AddComponent(entity, new ModelComponent(LightBulbModel)); //AddComponent(entity, new ModelComponent(LightBulbModel));
AddComponent(entity, new OverrideAlbedoComponent(message.Color.ToVector3())); AddComponent(entity, new OverrideAlbedoComponent(message.Color.ToVector3()));
} }
} }

View File

@ -246,37 +246,37 @@ namespace KavTest
// toonShadeRuinsModel // toonShadeRuinsModel
// )); // ));
var lightEntity = WorldBuilder.CreateEntity(); // var lightEntity = WorldBuilder.CreateEntity();
WorldBuilder.SetComponent( // WorldBuilder.SetComponent(
lightEntity, // lightEntity,
new Transform3DComponent( // new Transform3DComponent(
new Transform3D( // new Transform3D(
new Vector3(0, 3, 3), // new Vector3(0, 3, 3),
Quaternion.Identity, // Quaternion.Identity,
new Vector3(0.1f, 0.1f, 0.1f) // new Vector3(0.1f, 0.1f, 0.1f)
) // )
) // )
); // );
WorldBuilder.SetComponent( // WorldBuilder.SetComponent(
lightEntity, // lightEntity,
new PointLightComponent(Color.Blue, 1000f) // new PointLightComponent(Color.Blue, 1000f)
); // );
WorldBuilder.SetComponent( // WorldBuilder.SetComponent(
lightEntity, // lightEntity,
new ModelComponent(cubeModel) // new ModelComponent(cubeModel)
); // );
// for (var i = 0; i < 1; i++) for (var i = 0; i < 1; i++)
// { {
// var start = RandomHelper.RandomVector3(2, 5); var start = RandomHelper.RandomVector3(2, 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, 500f,
// RandomHelper.RandomLoop(start, 2, 5, 3, 10) RandomHelper.RandomLoop(start, 2, 5, 3, 10)
// )); ));
// } }
var ambientLightEntity = WorldBuilder.CreateEntity(); var ambientLightEntity = WorldBuilder.CreateEntity();