Set default headlight intensity to zero if there are no physical lights in the scene.
PiperOrigin-RevId: 839962392 Change-Id: I086d8135604982c42381a9b49cec53773c7fa362
This commit is contained in:
committed by
Copybara-Service
parent
8507b62556
commit
4a6b9456aa
@@ -310,7 +310,9 @@ void SceneView::PrepareLights() {
|
||||
// dealing with a "classic renderer" scene. In this case, let's add a
|
||||
// default environment light and set the light intensity ourselves.
|
||||
if (total_light_intensity == 0.0f) {
|
||||
constexpr float kHeadlightIntensityCandela = 10'000.f;
|
||||
// Headlight is not required for Filament and often confusing, disable it by
|
||||
// default.
|
||||
constexpr float kHeadlightIntensityCandela = 0.f;
|
||||
constexpr float kTotalSceneLightIntensityCandela = 100'000.f;
|
||||
constexpr float kFallbackEnvironmentLightIntensityCandela = 10'000.f;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user