From 0f5172a89d96f439ba5f47ba105604873522dd76 Mon Sep 17 00:00:00 2001 From: pharan Date: Thu, 8 Mar 2018 22:36:42 +0800 Subject: [PATCH] [unity] Hint at code with fixed eye normal. --- spine-unity/Assets/spine-unity/Shaders/Spine-SkeletonLit.shader | 1 + 1 file changed, 1 insertion(+) diff --git a/spine-unity/Assets/spine-unity/Shaders/Spine-SkeletonLit.shader b/spine-unity/Assets/spine-unity/Shaders/Spine-SkeletonLit.shader index 1917340ee..8b193c295 100644 --- a/spine-unity/Assets/spine-unity/Shaders/Spine-SkeletonLit.shader +++ b/spine-unity/Assets/spine-unity/Shaders/Spine-SkeletonLit.shader @@ -113,6 +113,7 @@ Shader "Spine/Skeleton Lit" { float3 eyePos = UnityObjectToViewPos(float4(v.pos, 1)).xyz; //mul(UNITY_MATRIX_MV, float4(v.pos,1)).xyz; half3 fixedNormal = half3(0,0,-1); half3 eyeNormal = normalize(mul((float3x3)UNITY_MATRIX_IT_MV, fixedNormal)); + //half3 eyeNormal = half3(0,0,1); half3 viewDir = 0.0; // Lights