Adjust the Highlight Contrast Scale value for the RGB sensor to resolve the black halo around the sun. From 0.3 to 0.7 (#8445)

Co-authored-by: Marcos <mdelgado.carlasimulator@gmail.com>
This commit is contained in:
Marcos 2024-12-05 13:37:32 +01:00 committed by GitHub
parent e6d4f385ef
commit 34025588a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -468,7 +468,7 @@ void UActorBlueprintFunctionLibrary::MakeCameraDefinition(
FActorVariation HighlightContrastScaleVariation;
HighlightContrastScaleVariation.Id = TEXT("highlight_contrast_scale");
HighlightContrastScaleVariation.Type = EActorAttributeType::Float;
HighlightContrastScaleVariation.RecommendedValues = { TEXT("0.3") };
HighlightContrastScaleVariation.RecommendedValues = { TEXT("0.7") };
HighlightContrastScaleVariation.bRestrictToRecommended = false;
FActorVariation ShadowContrastScaleVariation;
@ -1711,7 +1711,7 @@ void UActorBlueprintFunctionLibrary::SetCamera(
Camera->SetExposureSpeedDown(
RetrieveActorAttributeToFloat("exposure_speed_down", Description.Variations, 1.0f));
Camera->SetHighlightContrastScale(
RetrieveActorAttributeToFloat("highlight_contrast_scale", Description.Variations, 0.3f));
RetrieveActorAttributeToFloat("highlight_contrast_scale", Description.Variations, 0.7f));
Camera->SetShadowContrastScale(
RetrieveActorAttributeToFloat("shadow_constrast_scale", Description.Variations, 0.65f));
// This is deprecated: