deferred rendering
parent
bf6b249b51
commit
6c49a46a57
2
Kav
2
Kav
|
@ -1 +1 @@
|
||||||
Subproject commit cc491f1f5fd8e76c6277eac674a63b9ce42f6af8
|
Subproject commit 7d058402772ccdb2b9ac9d0879f9552ed70400bf
|
|
@ -79,6 +79,36 @@ namespace KavTest
|
||||||
300f
|
300f
|
||||||
));
|
));
|
||||||
|
|
||||||
|
WorldBuilder.SendMessage(new LightBulbSpawnMessage(
|
||||||
|
new Transform3D(new Vector3(5, 2, -5)),
|
||||||
|
Color.Blue,
|
||||||
|
300f
|
||||||
|
));
|
||||||
|
|
||||||
|
WorldBuilder.SendMessage(new LightBulbSpawnMessage(
|
||||||
|
new Transform3D(new Vector3(-5, -2, -5)),
|
||||||
|
Color.Red,
|
||||||
|
300f
|
||||||
|
));
|
||||||
|
|
||||||
|
WorldBuilder.SendMessage(new LightBulbSpawnMessage(
|
||||||
|
new Transform3D(new Vector3(-5, 2, 5)),
|
||||||
|
Color.Yellow,
|
||||||
|
300f
|
||||||
|
));
|
||||||
|
|
||||||
|
WorldBuilder.SendMessage(new LightBulbSpawnMessage(
|
||||||
|
new Transform3D(new Vector3(-5, 2, -10)),
|
||||||
|
Color.Orange,
|
||||||
|
300f
|
||||||
|
));
|
||||||
|
|
||||||
|
WorldBuilder.SendMessage(new LightBulbSpawnMessage(
|
||||||
|
new Transform3D(new Vector3(-10, 2, -5)),
|
||||||
|
Color.CornflowerBlue,
|
||||||
|
300f
|
||||||
|
));
|
||||||
|
|
||||||
var directionalLightEntity = WorldBuilder.CreateEntity();
|
var directionalLightEntity = WorldBuilder.CreateEntity();
|
||||||
WorldBuilder.SetComponent(directionalLightEntity, new Transform3DComponent(
|
WorldBuilder.SetComponent(directionalLightEntity, new Transform3DComponent(
|
||||||
new Transform3D(
|
new Transform3D(
|
||||||
|
|
|
@ -95,20 +95,20 @@ namespace KavTest.Renderers
|
||||||
// );
|
// );
|
||||||
// }
|
// }
|
||||||
|
|
||||||
Renderer.Render(
|
Renderer.DeferredRender(
|
||||||
camera,
|
camera,
|
||||||
ModelTransforms,
|
ModelTransforms,
|
||||||
PointLights,
|
PointLights,
|
||||||
DirectionalLights
|
DirectionalLights
|
||||||
);
|
);
|
||||||
|
|
||||||
foreach (var directionalLight in DirectionalLights)
|
// foreach (var directionalLight in DirectionalLights)
|
||||||
{
|
// {
|
||||||
Renderer.DepthRender(
|
// Renderer.DepthRender(
|
||||||
ModelTransforms,
|
// ModelTransforms,
|
||||||
directionalLight
|
// directionalLight
|
||||||
);
|
// );
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue