Changed rendermode

This commit is contained in:
doterop 2020-06-19 08:44:28 +02:00 committed by bernat
parent ea8ed416d1
commit 77e6ebb7d2
2 changed files with 2 additions and 1 deletions

View File

@ -63,6 +63,7 @@ ASceneCaptureSensor::ASceneCaptureSensor(const FObjectInitializer &ObjectInitial
CaptureComponent2D = CreateDefaultSubobject<USceneCaptureComponent2D>(
FName(*FString::Printf(TEXT("SceneCaptureComponent2D_%d"), SCENE_CAPTURE_COUNTER)));
CaptureComponent2D->SetupAttachment(RootComponent);
CaptureComponent2D->PrimitiveRenderMode = ESceneCapturePrimitiveRenderMode::PRM_RenderScenePrimitives;
SceneCaptureSensor_local_ns::SetCameraDefaultOverrides(*CaptureComponent2D);

View File

@ -310,7 +310,7 @@ protected:
static TArray<ASceneCaptureSensor*> CaptureSensors;
static int32 NumCaptureSensors;
static const int32 MaxNumTextures = 2; // This has to be POT
static const int32 MaxNumTextures = 1; // This has to be POT
int32 CurrentTexture = 0;
int32 PreviousTexture = 0;