Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Raytracing[Toggle] ( On: Forces DX12 / Off: Forces DX 11)
- //GI [ Enabled by default DDGI]
- //Normal : Only DDGI
- IConsoleManager::Get().FindConsoleVariable(TEXT("r.GlobalIllumination.ExperimentalPlugin"))->Set(1);
- IConsoleManager::Get().FindConsoleVariable(TEXT("r.RTXGI.DDGI"))->Set(1);
- //High Quality : Tandem DDGI+SSGI
- IConsoleManager::Get().FindConsoleVariable(TEXT("r.SSGI.Enable"))->Set(1); // To improve high frequency detail
- //Reflections [Toggle]
- //Normal
- IConsoleManager::Get().FindConsoleVariable(TEXT("r.RayTracing.Reflections"))->Set(1); //Base Setting 50%
- IConsoleManager::Get().FindConsoleVariable(TEXT("r.RayTracing.Reflections.ScreenPercentage"))->Set(50); //-> Normal Quality
- //High
- IConsoleManager::Get().FindConsoleVariable(TEXT("r.RayTracing.Reflections.ScreenPercentage"))->Set(100); //-> High Quality
- //RTAO [Toggle]
- IConsoleManager::Get().FindConsoleVariable(TEXT("r.RayTracing.AmbientOcclusion"))->Set(1);
- //Shadows[Toggle] (Less Relevant)
- IConsoleManager::Get().FindConsoleVariable(TEXT("r.RayTracing.Shadows"))->Set(1);
- //Character Rendering [Category]
- //TressFX [Toggle]
- IConsoleManager::Get().FindConsoleVariable(TEXT("r.TressFX.Enable"))->Set(1);
- //You have swap the Character components that deal with Hair (Activate / Deactuve Character Components )
- TArray<UTressFXComponent*> TressFXComps;
- GetComponents<UTressFXComponent>(SkelMeshComps);
- for (UTressFXComponent* M : SkelMeshComps)
- {
- turn off isVisible
- }
- auto SafeDestroy = [](UActorComponent* Comp)
- {
- Comp->Deactivate();
- };
- //CallistoBRDF [Toggle]
- You get the material from the Character's Skeletal Mesh
- +Material Element 1: JillHead4
- +Make Another Material for the Callisto BRDF Version
- Swap these materials (OG and Callisto BRDF according to the Toogle )
- UPROPERTY()
- UMaterialInstanceDynamic* MeshMID;
- UPROPERTY(EditDefaultsOnly, Category="Assets")
- TArray<UMaterialInterface*> SplatBaseMat;
- MeshMID = Mesh->CreateDynamicMaterialInstance(0);
Advertisement