Skip to content

Commit

Permalink
0.1.0 update
Browse files Browse the repository at this point in the history
  • Loading branch information
soupday committed Jul 23, 2021
1 parent b3d2d83 commit acba22b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions Editor/Pipeline.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
* along with CC3_Unity_Tools. If not, see <https://www.gnu.org/licenses/>.
*/

#define PIPELINE_HDRP

using System.Collections.Generic;
using UnityEngine;

Expand All @@ -35,7 +33,7 @@ public enum MaterialQuality { Default, High, Baked }

public static class Pipeline
{
#if PIPELINE_HDRP
#if HDRP_10_5_0_OR_NEWER
// Shaders
//
public const string SHADER_DEFAULT = "HDRP/Lit";
Expand Down Expand Up @@ -113,7 +111,7 @@ public static class Pipeline
public const string MATERIAL_BAKED_HAIR_CUSTOM = "RL_Template_Baked_HairCustom_HDRP";
// for gamebase single material or actor core...
public const string MATERIAL_DEFAULT_SINGLE_MATERIAL = "RL_Template_Default_SingleMaterial_HDRP";
#elif PIPELINE_URP
#elif URP_10_5_0_OR_NEWER
// Shaders
//
public const string SHADER_DEFAULT = "Universal Render Pipeline/Lit";
Expand Down Expand Up @@ -188,7 +186,7 @@ public static class Pipeline
public const string MATERIAL_BAKED_CORNEA_REFRACTIVE = "RL_Template_Baked_CorneaRef_URP";
public const string MATERIAL_BAKED_EYE_CUSTOM = "RL_Template_Baked_EyeCustom_URP";
public const string MATERIAL_BAKED_HAIR_CUSTOM = "RL_Template_Baked_HairCustom_URP";
#elif PIPELINE_3D
#else
// Shaders
//
public const string SHADER_DEFAULT = "3D/Lit";
Expand Down Expand Up @@ -336,14 +334,12 @@ public static class Pipeline

public static RenderPipeline GetRenderPipeline()
{
#if PIPELINE_HDRP
#if HDRP_10_5_0_OR_NEWER
return RenderPipeline.HDRP;
#elif PIPELINE_URP
#elif URP_10_5_0_OR_NEWER
return RenderPipeline.URP;
#elif PIPELINE_3D
return RenderPipeline.Builtin;
#else
return RenderPipeline.Unknown;
return RenderPipeline.Builtin;
#endif
}

Expand Down

0 comments on commit acba22b

Please sign in to comment.