Browse Source

[unity] SkeletonRenderTexture: Changed default shader passes to only 0 instead of -1 (all passes) preventing common issues.

Harald Csaszar 11 months ago
parent
commit
b214801a0a

+ 2 - 2
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}

+ 2 - 2
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;

+ 1 - 1
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",