145 lines
3.8 KiB
HLSL
145 lines
3.8 KiB
HLSL
#ifndef ALLIN13DSHADER_FEATURESURP
|
|
#define ALLIN13DSHADER_FEATURESURP
|
|
|
|
#ifdef ALLIN1_DOTS_INSTANCING_SUPPORT
|
|
#pragma target 4.5
|
|
#else
|
|
#pragma target 3.0
|
|
#endif
|
|
|
|
|
|
#if defined(ALLIN1_FORWARD_PASS)
|
|
#ifdef ALLIN1_GPU_INSTANCING_SUPPORT
|
|
#pragma multi_compile_instancing
|
|
#endif
|
|
|
|
#ifdef ALLIN1_DOTS_INSTANCING_SUPPORT
|
|
#pragma multi_compile _ DOTS_INSTANCING_ON
|
|
#endif
|
|
|
|
#ifdef ALLIN1_FOG_SUPPORT
|
|
#if UNITY_VERSION >= 60020000
|
|
#include_with_pragmas "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Fog.hlsl"
|
|
#else
|
|
#pragma multi_compile_fog
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef ALLIN1_CAST_SHADOWS_SUPPORT
|
|
#pragma multi_compile _ _MAIN_LIGHT_SHADOWS _MAIN_LIGHT_SHADOWS_CASCADE _MAIN_LIGHT_SHADOWS_SCREEN
|
|
#pragma multi_compile _ _SHADOWS_SOFT
|
|
#endif
|
|
|
|
#ifdef ALLIN1_SSO_SUPPORT
|
|
#pragma multi_compile_fragment _ _SCREEN_SPACE_OCCLUSION
|
|
#endif
|
|
|
|
#ifdef ALLIN1_ADDITIONAL_LIGHTS_SUPPORT
|
|
#pragma multi_compile _ _ADDITIONAL_LIGHTS_VERTEX _ADDITIONAL_LIGHTS
|
|
#pragma multi_compile_fragment _ _ADDITIONAL_LIGHT_SHADOWS
|
|
#endif
|
|
|
|
#ifdef ALLIN1_REFLECTIONS_PROBES_SUPPORT_UNITY6
|
|
#pragma multi_compile_fragment _ _REFLECTION_PROBE_BLENDING
|
|
#pragma multi_compile_fragment _ _REFLECTION_PROBE_BOX_PROJECTION
|
|
#pragma multi_compile_fragment _ _REFLECTION_PROBE_ATLAS
|
|
#endif
|
|
|
|
#ifdef ALLIN1_ADAPTATIVE_PROBE_VOLUMES_UNITY6
|
|
#if UNITY_VERSION >= 60000000
|
|
#include_with_pragmas "Packages/com.unity.render-pipelines.universal/ShaderLibrary/ProbeVolumeVariants.hlsl"
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef ALLIN1_LIGHT_LAYERS_SUPPORT
|
|
#pragma multi_compile _ _LIGHT_LAYERS
|
|
#endif
|
|
|
|
#ifdef ALLIN1_SHADOW_MASK_SUPPORT
|
|
#pragma multi_compile _ SHADOWS_SHADOWMASK // v10+ only
|
|
#endif
|
|
|
|
#ifdef ALLIN1_FORWARD_PLUS_SUPPORT_UNITY6
|
|
#if UNITY_VERSION >= 60020000
|
|
#define ALLIN1_USE_FORWARD_PLUS USE_CLUSTER_LIGHT_LOOP
|
|
#define ALLIN1_FORWARD_PLUS_SUBTRACTIVE_LIGHT_CHECK CLUSTER_LIGHT_LOOP_SUBTRACTIVE_LIGHT_CHECK
|
|
|
|
#pragma multi_compile _ _CLUSTER_LIGHT_LOOP
|
|
#else
|
|
#define ALLIN1_USE_FORWARD_PLUS USE_FORWARD_PLUS
|
|
#define ALLIN1_FORWARD_PLUS_SUBTRACTIVE_LIGHT_CHECK FORWARD_PLUS_SUBTRACTIVE_LIGHT_CHECK
|
|
|
|
#pragma multi_compile _ _FORWARD_PLUS
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef ALLIN1_LIGHTMAPS_SUPPORT
|
|
#pragma multi_compile _ LIGHTMAP_SHADOW_MIXING // v10+ only, renamed from "_MIXED_LIGHTING_SUBTRACTIVE"
|
|
#pragma multi_compile _ LIGHTMAP_ON
|
|
#pragma multi_compile _ DIRLIGHTMAP_COMBINED
|
|
#endif
|
|
|
|
#ifdef ALLIN1_LIGHT_COOKIES_SUPPORT
|
|
#pragma multi_compile_fragment _ _LIGHT_COOKIES
|
|
#endif
|
|
|
|
#ifdef ALLIN1_DECALS_SUPPORT
|
|
#pragma multi_compile_fragment _ _DBUFFER_MRT1 _DBUFFER_MRT2 _DBUFFER_MRT3
|
|
#endif
|
|
|
|
#ifdef ALLIN1_LODCROSSFADE_SUPPORT
|
|
#pragma multi_compile _ LOD_FADE_CROSSFADE
|
|
#endif
|
|
|
|
#elif defined(SHADOW_CASTER_PASS)
|
|
#pragma multi_compile_fwdadd_fullshadows
|
|
|
|
#ifdef ALLIN1_GPU_INSTANCING_SUPPORT
|
|
#pragma multi_compile_instancing
|
|
#endif
|
|
|
|
#ifdef ALLIN1_DOTS_INSTANCING_SUPPORT
|
|
#pragma multi_compile _ DOTS_INSTANCING_ON
|
|
#endif
|
|
|
|
#pragma multi_compile_vertex _ _CASTING_PUNCTUAL_LIGHT_SHADOW
|
|
|
|
#elif defined(ALLIN1_DEPTH_ONLY_PASS)
|
|
#ifdef ALLIN1_GPU_INSTANCING_SUPPORT
|
|
#pragma multi_compile_instancing
|
|
#endif
|
|
|
|
#ifdef ALLIN1_DOTS_INSTANCING_SUPPORT
|
|
#pragma multi_compile _ DOTS_INSTANCING_ON
|
|
#endif
|
|
|
|
#elif defined(ALLIN1_DEPTH_NORMALS_PASS)
|
|
#ifdef ALLIN1_GPU_INSTANCING_SUPPORT
|
|
#pragma multi_compile_instancing
|
|
#endif
|
|
|
|
#ifdef ALLIN1_DOTS_INSTANCING_SUPPORT
|
|
#pragma multi_compile _ DOTS_INSTANCING_ON
|
|
#endif
|
|
|
|
#elif defined(ALLIN1_OUTLINE_PASS)
|
|
#ifdef ALLIN1_GPU_INSTANCING_SUPPORT
|
|
#pragma multi_compile_instancing
|
|
#endif
|
|
|
|
#ifdef ALLIN1_DOTS_INSTANCING_SUPPORT
|
|
#pragma multi_compile _ DOTS_INSTANCING_ON
|
|
#endif
|
|
|
|
#ifdef ALLIN1_FOG_SUPPORT
|
|
#if UNITY_VERSION >= 60020000
|
|
#include_with_pragmas "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Fog.hlsl"
|
|
#else
|
|
#pragma multi_compile_fog
|
|
#endif
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
#endif //ALLIN13DSHADER_FEATURESURP |