mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 17:26:01 +08:00
[unity] Added Fog material toggle to "Universal Render Pipeline/Spine/Skeleton Lit" shader defaulting to disabled. See #2959.
This commit is contained in:
parent
49abbdc458
commit
4d0178dcbe
@ -16,8 +16,8 @@
|
|||||||
#define USE_ADAPTIVE_PROBE_VOLUMES
|
#define USE_ADAPTIVE_PROBE_VOLUMES
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(FOG_LINEAR) || defined(FOG_EXP) || defined(FOG_EXP2)
|
#if !(defined(FOG_LINEAR) || defined(FOG_EXP) || defined(FOG_EXP2))
|
||||||
#define _FOG
|
#undef _FOG
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct appdata {
|
struct appdata {
|
||||||
|
|||||||
@ -11,6 +11,7 @@ Shader "Universal Render Pipeline/Spine/Skeleton Lit" {
|
|||||||
_Color(" Light Color", Color) = (1,1,1,1)
|
_Color(" Light Color", Color) = (1,1,1,1)
|
||||||
_Black(" Dark Color", Color) = (0,0,0,0)
|
_Black(" Dark Color", Color) = (0,0,0,0)
|
||||||
[MaterialToggle(_ADAPTIVE_PROBE_VOLUMES_PER_PIXEL)] _AdaptiveProbeVolumesPerPixel("APV per Pixel", Float) = 1
|
[MaterialToggle(_ADAPTIVE_PROBE_VOLUMES_PER_PIXEL)] _AdaptiveProbeVolumesPerPixel("APV per Pixel", Float) = 1
|
||||||
|
[MaterialToggle(_FOG)] _Fog("Fog", Float) = 0
|
||||||
[HideInInspector] _StencilRef("Stencil Reference", Float) = 1.0
|
[HideInInspector] _StencilRef("Stencil Reference", Float) = 1.0
|
||||||
[Enum(UnityEngine.Rendering.CompareFunction)] _StencilComp("Stencil Compare", Float) = 8 // Set to Always as default
|
[Enum(UnityEngine.Rendering.CompareFunction)] _StencilComp("Stencil Compare", Float) = 8 // Set to Always as default
|
||||||
}
|
}
|
||||||
@ -53,6 +54,7 @@ Shader "Universal Render Pipeline/Spine/Skeleton Lit" {
|
|||||||
#pragma multi_compile _ _LIGHT_AFFECTS_ADDITIVE
|
#pragma multi_compile _ _LIGHT_AFFECTS_ADDITIVE
|
||||||
#pragma multi_compile_fragment _ _LIGHT_COOKIES
|
#pragma multi_compile_fragment _ _LIGHT_COOKIES
|
||||||
#pragma shader_feature _TINT_BLACK_ON
|
#pragma shader_feature _TINT_BLACK_ON
|
||||||
|
#pragma shader_feature _ _FOG
|
||||||
// Farward+ renderer keywords
|
// Farward+ renderer keywords
|
||||||
#pragma multi_compile_fragment _ _LIGHT_LAYERS
|
#pragma multi_compile_fragment _ _LIGHT_LAYERS
|
||||||
#pragma multi_compile _ _FORWARD_PLUS
|
#pragma multi_compile _ _FORWARD_PLUS
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user