Internal change
PiperOrigin-RevId: 829417225 Change-Id: Ib2304c6a40fb7a2a9fed900a587b9f7ed4b3103a
This commit is contained in:
committed by
Copybara-Service
parent
6fb4394701
commit
80a91cfbea
@@ -299,7 +299,10 @@ void SceneView::PrepareLights() {
|
|||||||
params.castshadow = 0;
|
params.castshadow = 0;
|
||||||
params.intensity = 0;
|
params.intensity = 0;
|
||||||
auto light_obj = std::make_unique<Light>(object_mgr_, params);
|
auto light_obj = std::make_unique<Light>(object_mgr_, params);
|
||||||
|
#ifndef __EMSCRIPTEN__
|
||||||
|
// TODO(b/458045799): Re-enable when lights work on glinux and chromebook.
|
||||||
light_obj->AddToScene(scene_);
|
light_obj->AddToScene(scene_);
|
||||||
|
#endif
|
||||||
lights_.emplace_back(std::move(light_obj));
|
lights_.emplace_back(std::move(light_obj));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user