26 Commits

Author SHA1 Message Date
Harald Csaszar
4792522de0 [unity] Fixed Spine URP shaders package using non UPM include paths in common shaders. Closes #2050. 2022-03-29 15:13:20 +02:00
Harald Csaszar
5a32e002b8 [unity] Fixed URP lit shaders ignoring straight alpha settings during fallback to unlit. Affected SkeletonRenderTexture. Closes #2044. 2022-03-15 19:17:51 +01:00
Harald Csaszar
8a30203ab9 [unity] Fixed incorrect normal orientation for lighting in URP 2D shaders. Closes #2023. Fixed compile error of URP/2D/Spine/Sprite shader on Unity 2021.2. Closes #2022. 2022-01-18 19:03:12 +01:00
Harald Csaszar
dfa52de90d [unity] Fixed URP shader compile error at Unity 2021.2 (with URP 12.0 and newer). Closes #1912. Added commented-out include references to spine-core include files using package name, to be used when spine-unity is used via UPM package. 2021-10-29 16:16:12 +02:00
Harald Csaszar
5052b727de [unity] Removed unnecessary URP shader variants that lead to very high compile time. Closes #1974. 2021-10-29 13:20:45 +02:00
Harald Csaszar
43e8000c80 [unity] Fixed URP Sprite shader ignoring Fixed normal in some settings. Closes #1967. Fixed a warning. 2021-10-12 12:48:49 +02:00
Harald Csaszar
02f87a0f9f [unity] All lit shaders now provide an additional parameter Light Affects Additive which defaults to false. This re-introduces flexibility taken away in commit aa46f411. See #1301. 2021-04-07 19:54:08 +02:00
Harald Csaszar
aa46f411ab [unity] Made all shaders (including URP and LWRP shaders) compatible with Linear Color Space. Closes #1301. 2021-03-31 20:44:45 +02:00
Harald Csaszar
d50cdef325 [unity] Corrected and unified Additive Slot behaviour of commit c5c7174 for URP and LWRP shaders (2D and 3D). Now only active for PMA blending and correctly performing alpha clip. See #1850. 2021-03-04 17:47:48 +01:00
Harald Csaszar
c5c71747c3 [unity] Fixed single pass additive slot blend mode for all URP and LWRP shaders (2D and 3D). Closes #1850. 2021-03-03 20:18:35 +01:00
Harald Csaszar
4a0b30dd2f [unity] Fixed URP and LWRP shaders Sprite and SkeletonLit not handling shadows correctly after 180 degree rotation (normal needs to be flipped for bias direction). Now URP shaders no longer require Advanced - Add Normals enabled to receive shadows. Closes #1842. 2021-02-17 20:16:56 +01:00
Harald Csaszar
1163142ba8 [unity] Fixed URP and LWRP SkeletonLit shader not receiving shadows. Closes #1840. Now another known issue of the Sprite shader is surfacing, not handling shadows correctly when rotated 180 degrees (see #1842). 2021-02-17 19:21:50 +01:00
Harald Csaszar
2fde05e899 [unity] Fixed URP and LWRP Sprite shader ramp only respecting main directional light, see #1819. Addition: All Sprite shaders now provide four Diffuse Ramp modes as an Inspector Material parameter: Hard, Soft, Old Hard and Old Soft. 2020-12-09 19:01:03 +01:00
Harald Csaszar
473caafd00 [unity] Fixed SRP batching support at Sprite shader of URP and LWRP shaders, with enabled rim light they were not compatible. See #1813. 2020-12-09 13:39:24 +01:00
Harald Csaszar
16b95b971b [unity] Now all URP and LWRP shaders support SRP batching. Closes #1813. 2020-12-02 20:23:31 +01:00
Harald Csaszar
af9d807460 [unity] Fixed URP Sprite shader shadow artifacts at cascade border (occured after Universal RP package versions 7.2). Still compatible with older versions before 7.2. Closes #1814. 2020-11-26 18:33:44 +01:00
Harald Csaszar
cf7035e112 [unity] Fixed URP 2D Sprite shader not respecting straight alpha blend modes. Closes #1755. 2020-09-03 17:36:55 +02:00
Harald Csaszar
11006baa65 [unity] Fixed URP Sprite shader treating skeleton alpha incorrectly. Closes #1735. 2020-08-07 15:40:35 +02:00
Harald Csaszar
3c94f52b52 [unity] Added support for double-sided lighting at SkeletonLit shaders (including URP and LWRP packages). Closes #1730. 2020-07-30 12:13:52 +02:00
Harald Csaszar
c6fb1795cf [unity] Fixed ZWrite NormalMap issue with Unity 2019.4.3f1 URP 7.4.1. Closes #1720. 2020-07-14 18:09:22 +02:00
Harald Csaszar
3a1dcd651a [unity] Fixed shader compile error with Unity 2019.4 and Urp 7.4.1. Closes #1700. Shader cleanup, removal of unused instancing vars and separate alpha texture variable. 2020-06-17 21:33:37 +02:00
Harald Csaszar
6df16d4fe1 [unity] Added ontline-only single pass shaders to LWRP and URP packages. This allows for separate outline child GameObjects that reference the existing Mesh of their parent, and re-draw the mesh using this outline shader.
The component to ease replacing materials of the parent will be added in separate upcoming commit.
2020-03-27 16:56:33 +01:00
Harald Csaszar
919b7badcb [unity] Added missing Fixed Normal Space option World-Space to all Sprite shaders (including URP and LWRP packages). Closes #1638. 2020-03-10 14:10:31 +01:00
Harald Csaszar
a659b70f18 [unity] Fixed Universal Render Pipeline/2D/Spine/Sprite negative scaleX losing normal-map functionality. Closes #1591. 2020-01-09 18:31:39 +01:00
Harald Csaszar
c1fd32abfd [unity] Fixed Universal Render Pipeline/2D/Spine/Sprite normals being incorrect in transparent areas. Closes #1588. 2020-01-02 18:39:55 +01:00
Harald Csaszar
d4b29c34c7 [unity] Added support for Universal Render Pipeline (URP), including 2D Renderer (2D Lights) of Unity 2019.3 through an additional UPM package. Closes #1413. 2019-12-20 10:07:20 +01:00