Small tweak for settings

This commit is contained in:
CVC\jbelon 2018-03-15 15:35:53 +01:00
parent 701e461013
commit b775308d8c
2 changed files with 2 additions and 12 deletions

View File

@ -61,21 +61,11 @@ ASceneCaptureCamera::ASceneCaptureCamera(const FObjectInitializer& ObjectInitial
CaptureRenderTarget->MipGenSettings = TextureMipGenSettings::TMGS_NoMipmaps;
#endif
CaptureRenderTarget->CompressionSettings = TextureCompressionSettings::TC_Default;
//CaptureRenderTarget->RenderTargetFormat = ETextureRenderTargetFormat::
CaptureRenderTarget->SRGB=0;
CaptureRenderTarget->bAutoGenerateMips = false;
CaptureRenderTarget->AddressX = TextureAddress::TA_Clamp;
CaptureRenderTarget->AddressY = TextureAddress::TA_Clamp;
//-------------------
CaptureComponent2D = CreateDefaultSubobject<USceneCaptureComponent2D>(TEXT("SceneCaptureComponent2D"));
//--addded by jbelon
//CaptureComponent2D->
//------------------
CaptureComponent2D->SetupAttachment(MeshComp);
// Load post-processing materials.
@ -121,7 +111,7 @@ void ASceneCaptureCamera::BeginPlay()
// Setup camera post-processing.
if (PostProcessEffect != EPostProcessEffect::None) {
CaptureComponent2D->CaptureSource = ESceneCaptureSource::SCS_FinalColorLDR;
CaptureComponent2D->CaptureSource = ESceneCaptureSource::SCS_FinalColorLDR; //HD is much slower!
}
if (bRemovePostProcessing) {
RemoveShowFlags(CaptureComponent2D->ShowFlags);

View File

@ -303,7 +303,7 @@ void UCarlaSettingsDelegate::LaunchEpicQualityCommands(UWorld* world) const
GEngine->Exec(world,TEXT("r.TranslucentLightingVolume 1"));
GEngine->Exec(world,TEXT("r.LightShaftDownSampleFactor 2"));
//GEngine->Exec(world,TEXT("r.OcclusionQueryLocation 0"));
GEngine->Exec(world,TEXT("r.BasePassOutputsVelocity 0"));
//GEngine->Exec(world,TEXT("r.BasePassOutputsVelocity 0")); //readonly
GEngine->Exec(world,TEXT("r.DetailMode 2"));
}