TheRedPixel

Settings

Jan 27th, 2026
108
0
Never
6
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.04 KB | None | 0 0
  1. //Raytracing[Toggle] ( On: Forces DX12 / Off: Forces DX 11)
  2.         //GI [ Enabled by default DDGI]
  3.             //Normal : Only DDGI
  4.             IConsoleManager::Get().FindConsoleVariable(TEXT("r.GlobalIllumination.ExperimentalPlugin"))->Set(1);
  5.             IConsoleManager::Get().FindConsoleVariable(TEXT("r.RTXGI.DDGI"))->Set(1);
  6.                 //High Quality : Tandem DDGI+SSGI
  7.                 IConsoleManager::Get().FindConsoleVariable(TEXT("r.SSGI.Enable"))->Set(1); // To improve high frequency detail
  8.    
  9.         //Reflections [Toggle]
  10.             //Normal
  11.             IConsoleManager::Get().FindConsoleVariable(TEXT("r.RayTracing.Reflections"))->Set(1); //Base Setting 50%
  12.             IConsoleManager::Get().FindConsoleVariable(TEXT("r.RayTracing.Reflections.ScreenPercentage"))->Set(50); //-> Normal Quality
  13.                 //High
  14.                 IConsoleManager::Get().FindConsoleVariable(TEXT("r.RayTracing.Reflections.ScreenPercentage"))->Set(100); //-> High Quality
  15.    
  16.         //RTAO [Toggle]
  17.         IConsoleManager::Get().FindConsoleVariable(TEXT("r.RayTracing.AmbientOcclusion"))->Set(1);
  18.    
  19.         //Shadows[Toggle] (Less Relevant)
  20.         IConsoleManager::Get().FindConsoleVariable(TEXT("r.RayTracing.Shadows"))->Set(1);
  21.    
  22.     //Character Rendering [Category]
  23.    
  24.         //TressFX [Toggle]
  25.         IConsoleManager::Get().FindConsoleVariable(TEXT("r.TressFX.Enable"))->Set(1);
  26.             //You have swap the Character components that deal with Hair (Activate / Deactuve Character Components )
  27.         TArray<UTressFXComponent*> TressFXComps;
  28.         GetComponents<UTressFXComponent>(SkelMeshComps);
  29.  
  30.         for (UTressFXComponent* M : SkelMeshComps)
  31.         {
  32.             turn off isVisible
  33.         }
  34.         auto SafeDestroy = [](UActorComponent* Comp)
  35.         {
  36.             Comp->Deactivate();
  37.         };
  38.         //CallistoBRDF [Toggle]
  39.          You get the material from the Character's Skeletal Mesh
  40.             +Material Element 1: JillHead4
  41.                 +Make Another Material for the Callisto BRDF Version
  42.    
  43.         Swap these materials (OG and Callisto BRDF according to the Toogle )
  44.     UPROPERTY()
  45.     UMaterialInstanceDynamic* MeshMID;
  46.    
  47.  
  48.     UPROPERTY(EditDefaultsOnly, Category="Assets")
  49.     TArray<UMaterialInterface*> SplatBaseMat;
  50.    
  51.     MeshMID = Mesh->CreateDynamicMaterialInstance(0);
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
Add Comment
Please, Sign In to add comment