Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.1.0 update #2

Merged
merged 1 commit into from
Jul 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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