mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[unity] Fixed Spine/Skeleton Lit shader not being affected by point lights. Closes #1550. Also fixed outline 4 vs 8 neighbourhood parameter being ignored (due to #pragma multi_compile / #pragma shader_feature not being evaluated in included cginc files, too late in preprocessor stage).
This commit is contained in:
parent
c90ca1b08c
commit
0006cd8b3c
@ -12,7 +12,6 @@
|
||||
#define LIGHT_LOOP_LIMIT unity_VertexLightParams.x
|
||||
#endif
|
||||
|
||||
#pragma multi_compile __ POINT SPOT
|
||||
|
||||
////////////////////////////////////////
|
||||
// Alpha Clipping
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
#ifndef SPINE_OUTLINE_PASS_INCLUDED
|
||||
#define SPINE_OUTLINE_PASS_INCLUDED
|
||||
|
||||
#pragma shader_feature _ _USE8NEIGHBOURHOOD_ON
|
||||
#include "UnityCG.cginc"
|
||||
|
||||
#ifdef SKELETON_GRAPHIC
|
||||
|
||||
@ -62,6 +62,7 @@ Shader "Spine/Outline/SkeletonGraphic"
|
||||
#pragma vertex vertOutlineGraphic
|
||||
#pragma fragment fragOutline
|
||||
#define SKELETON_GRAPHIC
|
||||
#pragma shader_feature _ _USE8NEIGHBOURHOOD_ON
|
||||
#include "../CGIncludes/Spine-Outline-Pass.cginc"
|
||||
ENDCG
|
||||
}
|
||||
|
||||
@ -38,6 +38,7 @@ Shader "Spine/Outline/Skeleton" {
|
||||
CGPROGRAM
|
||||
#pragma vertex vertOutline
|
||||
#pragma fragment fragOutline
|
||||
#pragma shader_feature _ _USE8NEIGHBOURHOOD_ON
|
||||
#include "CGIncludes/Spine-Outline-Pass.cginc"
|
||||
ENDCG
|
||||
}
|
||||
|
||||
@ -47,6 +47,7 @@ Shader "Spine/Skeleton Lit ZWrite" {
|
||||
#pragma target 2.0
|
||||
|
||||
#define _ALPHA_CLIP
|
||||
#pragma multi_compile __ POINT SPOT
|
||||
#include "CGIncludes/Spine-Skeleton-Lit-Common.cginc"
|
||||
ENDCG
|
||||
|
||||
|
||||
@ -45,6 +45,7 @@ Shader "Spine/Skeleton Lit" {
|
||||
#pragma fragment frag
|
||||
#pragma target 2.0
|
||||
|
||||
#pragma multi_compile __ POINT SPOT
|
||||
#include "CGIncludes/Spine-Skeleton-Lit-Common.cginc"
|
||||
ENDCG
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user