From b214801a0a95b4f69dd5f6f70b341c96ea83097f Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Fri, 23 Aug 2024 11:57:21 +0200 Subject: [PATCH] [unity] SkeletonRenderTexture: Changed default shader passes to only 0 instead of -1 (all passes) preventing common issues. --- .../Other Examples/RenderTexture FadeOut Transparency.unity | 4 ++-- .../SkeletonRenderTexture/SkeletonRenderTextureBase.cs | 4 ++-- spine-unity/Assets/Spine Examples/package.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/spine-unity/Assets/Spine Examples/Other Examples/RenderTexture FadeOut Transparency.unity b/spine-unity/Assets/Spine Examples/Other Examples/RenderTexture FadeOut Transparency.unity index 596dd690e..57ff07b00 100644 --- a/spine-unity/Assets/Spine Examples/Other Examples/RenderTexture FadeOut Transparency.unity +++ b/spine-unity/Assets/Spine Examples/Other Examples/RenderTexture FadeOut Transparency.unity @@ -1059,7 +1059,7 @@ MonoBehaviour: quadMaterial: {fileID: 2100000, guid: 4c507f887c6274a44a603d96e0eabf2a, type: 2} renderTexture: {fileID: 0} targetCamera: {fileID: 0} - shaderPasses: ffffffff + shaderPasses: 00000000 --- !u!114 &1786065615 MonoBehaviour: m_ObjectHideFlags: 0 @@ -1357,7 +1357,7 @@ MonoBehaviour: quadMaterial: {fileID: 2100000, guid: afeb0ae2ea2cda94796515bf8d1b3cb1, type: 2} renderTexture: {fileID: 0} targetCamera: {fileID: 0} - shaderPasses: ffffffff + shaderPasses: 00000000 customRenderRect: {fileID: 1089682727} meshRendererMaterialForTexture: - texture: {fileID: 2800000, guid: 4ea2c33e839afb34c98f66e892b3b2d2, type: 3} diff --git a/spine-unity/Assets/Spine Examples/Scripts/Sample Components/SkeletonRenderTexture/SkeletonRenderTextureBase.cs b/spine-unity/Assets/Spine Examples/Scripts/Sample Components/SkeletonRenderTexture/SkeletonRenderTextureBase.cs index 6c4c9de86..d3d4c6d14 100644 --- a/spine-unity/Assets/Spine Examples/Scripts/Sample Components/SkeletonRenderTexture/SkeletonRenderTextureBase.cs +++ b/spine-unity/Assets/Spine Examples/Scripts/Sample Components/SkeletonRenderTexture/SkeletonRenderTextureBase.cs @@ -48,8 +48,8 @@ namespace Spine.Unity.Examples { public Camera targetCamera; [Tooltip("Shader passes to render to the RenderTexture. E.g. set the first element " + "to -1 to render all shader passes, or set it to 0 to only render the first " + - "shader pass, which may be required when using URP.")] - public int[] shaderPasses = new int[1] { -1 }; + "shader pass, which may be required when using URP or shadow-casting shaders.")] + public int[] shaderPasses = new int[1] { 0 }; protected CommandBuffer commandBuffer; protected Vector2Int screenSize; diff --git a/spine-unity/Assets/Spine Examples/package.json b/spine-unity/Assets/Spine Examples/package.json index 9508667f8..9f15b3a28 100644 --- a/spine-unity/Assets/Spine Examples/package.json +++ b/spine-unity/Assets/Spine Examples/package.json @@ -2,7 +2,7 @@ "name": "com.esotericsoftware.spine.spine-unity-examples", "displayName": "spine-unity Runtime Examples", "description": "This plugin provides example scenes and scripts for the spine-unity runtime.", - "version": "4.2.36", + "version": "4.2.37", "unity": "2018.3", "author": { "name": "Esoteric Software",