You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
703 B
17 lines
703 B
// Setup a define to say we are an unlit shader
|
|
#define SHADER_UNLIT
|
|
$EnableShadowMatte: #define _ENABLE_SHADOW_MATTE
|
|
|
|
// Following Macro are only used by Unlit material
|
|
#if defined(_ENABLE_SHADOW_MATTE)
|
|
#if SHADERPASS == SHADERPASS_FORWARD_UNLIT
|
|
#pragma multi_compile_fragment USE_FPTL_LIGHTLIST USE_CLUSTERED_LIGHTLIST
|
|
#elif SHADERPASS == SHADERPASS_PATH_TRACING
|
|
#define LIGHTLOOP_DISABLE_TILE_AND_CLUSTER
|
|
#endif
|
|
|
|
// We don't want to have the lightloop defined for the ray tracing passes, but we do for the rasterisation and path tracing shader passes.
|
|
#if !defined(SHADER_STAGE_RAY_TRACING) || SHADERPASS == SHADERPASS_PATH_TRACING
|
|
#define HAS_LIGHTLOOP
|
|
#endif
|
|
#endif
|