54 Commits

Author SHA1 Message Date
Harald Csaszar
962cdf844e [unity] Fixed incorrect too dark (transparent) display of additive slots when in Linear color space. Closes #2552. 2024-06-17 20:50:24 +02:00
Harald Csaszar
ff07a01aef [unity] SkeletonGraphic allows custom mesh offset relative to the pivot to keep e.g. the face centered when layout scale downscales the mesh towards the pivot. Closes #2482. 2024-06-12 17:53:05 +02:00
Harald Csaszar
7d57e7d343 [csharp] Port of earlier clipping cleanup commit 485de74: SkeletonClipping.ClipTriangles clean up. 2024-06-10 18:44:59 +02:00
Harald Csaszar
330e646c08 [unity] Fixed SkeletonRenderSeparator mesh being broken with slot alpha 0. Closes #2532. 2024-05-21 21:38:29 +02:00
Harald Csaszar
c6a01d7a5f [csharp][unity] Skeleton.getBounds() applies clipping, see #2515. Port of commits b043e5c, 637321a and 2049bed. 2024-05-02 20:22:50 +02:00
Harald Csaszar
6376daf61d [unity] SkeletonGraphic: Added auto-detect functionality for settings and materials. Renamed CanvasGroupTintBlack param to CanvasGroup Compatible (breaking change). 2024-03-15 11:02:06 +01:00
Harald Csaszar
41ee663279 [unity] Fixed SkeletonGraphic TintBlack shader with PMA Vertex Color and CanvasGroup Compatible looking incorrect. Closes #2483. 2024-03-13 11:56:45 +01:00
Harald Csaszar
0b9bab2392 Merge branch '4.1' into 4.2-beta 2023-12-19 16:53:43 +01:00
Harald Csaszar
05de65cf9e [unity] Fixed SkeletonRenderSeparator with CustomMaterialOverride potentially throwing ArgumentNullException. Closes #2435. 2023-12-19 16:44:44 +01:00
Harald Csaszar
5fe6da05d6 [unity] Optimization: Not rendering slot alpha 0 attachments by default. 2023-11-27 20:22:32 +01:00
Harald Csaszar
f8352dce0a [unity] Ported 4.2-beta physics. Updated skeleton assets. 2023-11-17 17:18:18 +01:00
Mario Zechner
74b7882efa Merge branch '4.1' into 4.2-beta 2023-07-31 13:29:29 +02:00
Mario Zechner
4047f1ba07 Updated license headers. 2023-07-31 13:29:16 +02:00
Harald Csaszar
764a480610 Merge branch '4.1' into 4.2-beta 2023-04-13 18:18:48 +02:00
Harald Csaszar
92728548b7 [unity] Minor: refactoring, variable renamed. 2023-04-13 17:59:25 +02:00
Harald Csaszar
a8e6552b81 [unity] OnPostProcessVertices callback now provides access to uv2 and uv3 buffers. Closes #2230. 2023-01-25 19:25:35 +01:00
Harald Csaszar
01b8c06800 [csharp] Code cleanup: replaced var with explicit type names. 2023-01-10 13:03:56 +01:00
Harald Csaszar
9c0c1ce176 [unity] Minor: removed unnecessary else statement. 2022-01-20 11:44:42 +01:00
Harald Csaszar
b1e81fc1b2 Merge branch '4.0' into 4.1-beta 2021-11-10 19:34:19 +01:00
Harald Csaszar
a182cdb169 [unity] Fixed MeshGenerator not updating triangle indices when inactive bone implicitly clears attachment. Closes #1984. 2021-11-10 19:32:52 +01:00
Harald Csaszar
3250e74e26 [csharp][unity] Port sequence attachment. See #1956. Also port of other 4.1-beta branch changes compared to 4.0. 2021-11-03 15:26:22 +01:00
Nathan Sweet
96a998b82d Spine Runtimes License Agreement update (September 24, 2021). 2021-09-24 18:18:19 -10:00
Harald Csaszar
7f5e7c3bfc [unity] Prepared MeshGenerator class for creating subclasses. 2021-09-17 20:38:55 +02:00
Harald Csaszar
91f7969cdc [csharp][unity] Adjusted spine-csharp and dependent modules to being used as separate UPM packages. See #1676. 2021-09-14 17:12:50 +02:00
Mario Zechner
d12b15ca8d [csharp] Format all source code using formatters/.editorconfig 2021-08-18 18:59:53 +02:00
Harald Csaszar
60e67017e6 [unity] Added SkeletonGraphic blend modes support including new shaders and materials (Advanced - Multiple CanvasRenderers must be enabled). Closes #1316. 2021-07-27 17:03:40 +02:00
Harald Csaszar
43565f197d [unity] Fixed incorrect rendering when CanvasGroup compatible is enabled on SkeletonGraphic TintBlack shader. Closes #1908. 2021-07-09 18:36:10 +02:00
Harald Csaszar
f0f52da3ad [unity] Fixed too high Mesh vertex count when multiple submeshes are used (in combination with clipping). Supported on Unity 2019.3+. Closes #1894. 2021-05-20 19:29:56 +02:00
Harald Csaszar
d43b7b0a9f [unity] Fixed enabling CanvasGroup Compatible at Spine-SkeletonGraphic-TintBlack shader causing Additive blend mode not to work but instead hide the attachment completely. Now providing a Canvas Group Tint Black parameter a SkeletonGraphic Inspector in the Advanced section. Closes #1756. 2020-09-11 20:38:14 +02:00
Harald Csaszar
1707c8ce42 [unity] Fixed a clipping bug when there are two clipping meshes and clipping-end-slot is a skin bone that is disabled (Clipping.endClipping not called when slot.bone.active==false). See #1694. 2020-06-05 21:30:59 +02:00
Harald Csaszar
bc559625f2 [unity] SkeletonGraphic now supports multiple atlas textures via additional CanvasRenderer GameObjects. Closes #1592. SkeletonGraphic now also supports SkeletonRenderSeparator functionality. Closes #1254. See SkeletonRenderSeparator.unity scene for a usage example. 2020-05-25 20:22:04 +02:00
Harald Csaszar
a4127df1a8 [unity] Fixed Tint black being ignored when used in combination with additive. Secondary dark color was not premultiplied with alpha before passed to the shader but multiplied in shader, which was wrong (as alpha was set to 0 for additive blending then). Closes #1634. 2020-03-06 14:53:56 +01:00
Harald Csaszar
68595c439d [unity] Fixed clipping masks not always working on additional atlas pages, when clipping end slot is first submesh attachment. Closes #1618. 2020-02-17 16:21:29 +01:00
badlogic
b67bf992a0 Single bone IK fix and license header update. Closes #1580, closes #1581. 2019-12-20 12:20:46 +01:00
Harald Csaszar
e88cfd4dac [unity] Fixed an exception at SkeletonGraphic when no active attachments are set. MeshGenerator.GenerateSingleSubmeshInstruction() didnt't handle the case of all-null attachments. Improved code to not generate an unnecessary empty instruction. Closes #1491. 2019-09-23 13:12:16 +02:00
NathanSweet
842dffbd83 [all] Source clean up, formatting, and tabs for indentation. 2019-08-27 15:57:14 +02:00
Harald Csaszar
5c203ee2db [unity] Fixed SkeletonGraphic not updating the canvas renderer texture after skin changes (e.g. when calling GetRepackedSkin). Closes #1459. 2019-08-20 15:23:18 +02:00
Harald Csaszar
e898ff829c [unity] Cleanup: Split the file Mesh Generation/SpineMesh into 4 separate files for each contained class. No API changes. 2019-07-17 02:17:03 +02:00
Harald Csaszar
1d0cce3707 [csharp] Port of more skin API changes, commits: 659c390, 7ee57dc, b3c2170, b71970a, 42c1c4a, 70cdf2d. See #841 2019-06-04 18:24:40 +02:00
badlogic
7f7e5f0fec Updated license headers and LICENSE files. 2019-05-02 11:38:19 +02:00
Harald Csaszar
7b690624f3 [unity] Fixed SkeletonPartsRenderer mesh tangent error. Also fixed another potential size mismatch at mesh normals or tangents vs vertices. Closes #1265. 2019-02-06 19:17:56 +01:00
pharan
65e8d12e63
[unity] Fix tint black buffer mismatched sizes when vertex array is smaller. 2018-12-18 14:02:38 +08:00
pharan
3a96c22c3a
[unity] Fix mesh generator submesh buffer starting too large. 2018-11-15 11:30:48 +08:00
pharan
ff31888adf
[unity] Fix submesh count regression.
This also fixes tangents not being fully calculated when a skeleton uses no clipping and multiple submeshes.
2018-11-15 10:49:19 +08:00
pharan
1b95de7ac4 [unity] Formatting and docs. 2018-11-13 05:45:47 +08:00
pharan
27828048fb [unity] Fix MeshGenerator unnecessarily disposing buffer objects. 2018-10-18 21:37:24 +08:00
pharan
8d74ef06ac [unity] Prospective resizing for MeshGenerator AddSubmesh branch. 2018-10-18 21:36:22 +08:00
pharan
d78b2fd024 [unity] Use EnsureCapacity for predetermined list sizes. 2018-10-18 21:35:33 +08:00
pharan
fac440c434 [unity] Allow user to preallocate MeshGenerator buffer size. 2018-10-17 22:18:53 +08:00
pharan
6dec3d37fa [unity] Fix MeshGenerator unnecessarily replacing buffer objects. 2018-10-17 22:18:06 +08:00