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 PointLightComponent(message.Color, message.Intensity));
AddComponent(entity, new MoveAlongCurve3DComponent(message.Curve));
AddComponent(entity, new ModelComponent(LightBulbModel));
//AddComponent(entity, new ModelComponent(LightBulbModel));
AddComponent(entity, new OverrideAlbedoComponent(message.Color.ToVector3()));
}
}

View File

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