From f545e4c5abcae92496876b847c58ef8ee968c5d7 Mon Sep 17 00:00:00 2001 From: Andrew Cassidy Date: Fri, 23 Aug 2024 22:05:05 -0700 Subject: [PATCH] Fix lightingKSP for standard/standard specular --- Assets/ConformalDecals/Shaders/LightingKSP.cginc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/ConformalDecals/Shaders/LightingKSP.cginc b/Assets/ConformalDecals/Shaders/LightingKSP.cginc index 94903ff..28a4135 100644 --- a/Assets/ConformalDecals/Shaders/LightingKSP.cginc +++ b/Assets/ConformalDecals/Shaders/LightingKSP.cginc @@ -88,7 +88,7 @@ inline void LightingBlinnPhongKSP_GI(inout SurfaceOutput s, UnityGIInput gi_inpu // STANDARD UNITY LIGHTING FUNCTION FOR KSP -inline float3 LightingStandardKSP(SurfaceOutputStandard s, float3 worldViewDir, UnityGI gi) +inline float4 LightingStandardKSP(SurfaceOutputStandard s, float3 worldViewDir, UnityGI gi) { return LightingStandard(s, worldViewDir, gi); // no change } @@ -109,7 +109,7 @@ inline void LightingStandardKSP_GI(inout SurfaceOutputStandard s, UnityGIInput g // STANDARD SPECULAR UNITY LIGHTING FUNCTION FOR KSP -inline float3 LightingStandardSpecularKSP(SurfaceOutputStandardSpecular s, float3 worldViewDir, UnityGI gi) +inline float4 LightingStandardSpecularKSP(SurfaceOutputStandardSpecular s, float3 worldViewDir, UnityGI gi) { return LightingStandardSpecular(s, worldViewDir, gi); // no change }