Suzanne fixup: create entities for point lights. (#206)

This was causing an assert with debug builds.
This commit is contained in:
Philip Rideout
2018-09-05 11:59:26 -07:00
committed by GitHub
parent 1c42a122c9
commit edec94bb08

View File

@@ -140,6 +140,7 @@ void setup(Engine* engine, View* view, Scene* scene) {
scene->addEntity(app.sun);
// Create point lights.
em.create(4, app.ptlight);
LightManager::Builder(LightManager::Type::POINT)
.color(Color::toLinear<ACCURATE>({0.98f, 0.92f, 0.89f}))
.intensity(LightManager::EFFICIENCY_LED, 300.0f)