|
@@ -399,8 +399,11 @@ cp -f ../coin/export/coin.atlas "$ROOT/spine-xna/example/data/"
|
|
|
cp -f ../coin/export/coin.png "$ROOT/spine-xna/example/data/"
|
|
|
|
|
|
cp -f ../raptor/export/raptor-pro.json "$ROOT/spine-xna/example/data/"
|
|
|
-cp -f ../raptor/export/raptor.atlas "$ROOT/spine-xna/example/data/"
|
|
|
-cp -f ../raptor/export/raptor.png "$ROOT/spine-xna/example/data/"
|
|
|
+# Note: normalmap need to be created manually. Thus we use a separately prepared atlas and
|
|
|
+# diffuse map so that the maps always match. These atlas textures are copied to the target dir.
|
|
|
+cp -f ../raptor/manual-maps/raptor.atlas "$ROOT/spine-xna/example/data/"
|
|
|
+cp -f ../raptor/manual-maps/raptor.png "$ROOT/spine-xna/example/data/"
|
|
|
+cp -f ../raptor/manual-maps/raptor-normals.png "$ROOT/spine-xna/example/data/raptor_normals.png"
|
|
|
|
|
|
cp -f ../spineboy/export/spineboy-pro.skel "$ROOT/spine-xna/example/data/"
|
|
|
cp -f ../spineboy/export/spineboy.atlas "$ROOT/spine-xna/example/data/"
|
|
@@ -463,9 +466,20 @@ cp -f ../raptor/export/raptor-pro.json "$UNITY_TARGET_DIR/raptor-pro.json"
|
|
|
cp -f ../raptor/export/raptor-pma.atlas "$UNITY_TARGET_DIR/raptor-pma.atlas.txt"
|
|
|
cp -f ../raptor/export/raptor-pma.png "$UNITY_TARGET_DIR/raptor-pma.png"
|
|
|
|
|
|
-cp -f ../raptor/export/raptor-pro.json "$ROOT/spine-unity/Modules/com.esotericsoftware.spine.urp-shaders/Examples/2D/Spine Skeletons/RaptorURP/"
|
|
|
-cp -f ../raptor/export/raptor-pro.json "$ROOT/spine-unity/Modules/com.esotericsoftware.spine.urp-shaders/Examples/3D/Spine Skeletons/RaptorURP/"
|
|
|
-cp -f ../raptor/export/raptor-pro.json "$ROOT/spine-unity/Modules/com.esotericsoftware.spine.lwrp-shaders/Spine Skeletons/RaptorLWRP/"
|
|
|
+# URP packages
|
|
|
+UNITY_TARGET_DIR="$ROOT/spine-unity/Modules/com.esotericsoftware.spine.urp-shaders/Examples/2D/Spine Skeletons/RaptorURP"
|
|
|
+cp -f ../raptor/export/raptor-pro.json "$UNITY_TARGET_DIR/"
|
|
|
+cp -f ../raptor/manual-maps/raptor.atlas "$UNITY_TARGET_DIR/raptor.atlas.txt"
|
|
|
+cp -f ../raptor/manual-maps/raptor.png "$UNITY_TARGET_DIR/"
|
|
|
+cp -f ../raptor/manual-maps/raptor-rim-mask.png "$UNITY_TARGET_DIR/"
|
|
|
+UNITY_TARGET_DIR="$ROOT/spine-unity/Modules/com.esotericsoftware.spine.urp-shaders/Examples/3D/Spine Skeletons/RaptorURP"
|
|
|
+cp -f ../raptor/export/raptor-pro.json "$UNITY_TARGET_DIR/"
|
|
|
+cp -f ../raptor/export/raptor.atlas "$UNITY_TARGET_DIR/raptor.atlas.txt"
|
|
|
+cp -f ../raptor/export/raptor.png "$UNITY_TARGET_DIR/"
|
|
|
+UNITY_TARGET_DIR="$ROOT/spine-unity/Modules/com.esotericsoftware.spine.lwrp-shaders/Spine Skeletons/RaptorLWRP"
|
|
|
+cp -f ../raptor/export/raptor-pro.json "$UNITY_TARGET_DIR/"
|
|
|
+cp -f ../raptor/export/raptor.atlas "$UNITY_TARGET_DIR/raptor.atlas.txt"
|
|
|
+cp -f ../raptor/export/raptor.png "$UNITY_TARGET_DIR/"
|
|
|
|
|
|
UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine Examples/Spine Skeletons/spineboy-pro"
|
|
|
cp -f ../spineboy/export/spineboy-pro.json "$UNITY_TARGET_DIR/spineboy-pro.json"
|
|
@@ -482,14 +496,32 @@ UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine Examples/Spine Skeletons/Stretc
|
|
|
cp -f ../stretchyman/export/stretchyman-pro.json "$UNITY_TARGET_DIR/stretchyman.json"
|
|
|
# Note: normalmap and emissionmap need to be created manually. Thus we use a separately prepared
|
|
|
# atlas and diffuse map here so that the maps always match. These atlas textures are copied to the target dir.
|
|
|
-cp -f $UNITY_SOURCE_DIR/stretchyman/stretchyman-diffuse-pma.atlas.txt "$UNITY_TARGET_DIR/stretchyman-diffuse-pma.atlas.txt"
|
|
|
-cp -f $UNITY_SOURCE_DIR/stretchyman/stretchyman-diffuse-pma.png "$UNITY_TARGET_DIR/stretchyman-diffuse-pma.png"
|
|
|
-cp -f $UNITY_SOURCE_DIR/stretchyman/stretchyman-normals.png "$UNITY_TARGET_DIR/"
|
|
|
-cp -f $UNITY_SOURCE_DIR/stretchyman/stretchyman-emission.png "$UNITY_TARGET_DIR/"
|
|
|
-
|
|
|
-cp -f ../stretchyman/export/stretchyman-pro.json "$ROOT/spine-unity/Modules/com.esotericsoftware.spine.urp-shaders/Examples/2D/Spine Skeletons/StretchymanURP/stretchyman.json"
|
|
|
-cp -f ../stretchyman/export/stretchyman-pro.json "$ROOT/spine-unity/Modules/com.esotericsoftware.spine.urp-shaders/Examples/3D/Spine Skeletons/StretchymanURP/stretchyman.json"
|
|
|
-cp -f ../stretchyman/export/stretchyman-pro.json "$ROOT/spine-unity/Modules/com.esotericsoftware.spine.lwrp-shaders/Spine Skeletons/StretchymanLWRP/stretchyman.json"
|
|
|
+cp -f ../stretchyman/manual-maps/stretchyman-pma.atlas "$UNITY_TARGET_DIR/stretchyman-diffuse-pma.atlas.txt"
|
|
|
+sed -i 's/stretchyman-pma.png/stretchyman-diffuse-pma.png/g' "$UNITY_TARGET_DIR/stretchyman-diffuse-pma.atlas.txt"
|
|
|
+cp -f ../stretchyman/manual-maps/stretchyman-pma.png "$UNITY_TARGET_DIR/stretchyman-diffuse-pma.png"
|
|
|
+cp -f ../stretchyman/manual-maps/stretchyman-normals.png "$UNITY_TARGET_DIR/"
|
|
|
+cp -f ../stretchyman/manual-maps/stretchyman-emission.png "$UNITY_TARGET_DIR/"
|
|
|
+
|
|
|
+# URP packages
|
|
|
+UNITY_TARGET_DIR="$ROOT/spine-unity/Modules/com.esotericsoftware.spine.urp-shaders/Examples/2D/Spine Skeletons/StretchymanURP"
|
|
|
+cp -f ../stretchyman/export/stretchyman-pro.json "$UNITY_TARGET_DIR/stretchyman.json"
|
|
|
+cp -f ../stretchyman/manual-maps/stretchyman.atlas "$UNITY_TARGET_DIR/stretchyman.atlas.txt"
|
|
|
+cp -f ../stretchyman/manual-maps/stretchyman.png "$UNITY_TARGET_DIR/"
|
|
|
+cp -f ../stretchyman/manual-maps/stretchyman-normals.png "$UNITY_TARGET_DIR/"
|
|
|
+cp -f ../stretchyman/manual-maps/stretchyman-emission.png "$UNITY_TARGET_DIR/"
|
|
|
+cp -f ../stretchyman/manual-maps/stretchyman-rim-mask.png "$UNITY_TARGET_DIR/"
|
|
|
+UNITY_TARGET_DIR="$ROOT/spine-unity/Modules/com.esotericsoftware.spine.urp-shaders/Examples/3D/Spine Skeletons/StretchymanURP"
|
|
|
+cp -f ../stretchyman/export/stretchyman-pro.json "$UNITY_TARGET_DIR/stretchyman.json"
|
|
|
+cp -f ../stretchyman/manual-maps/stretchyman.atlas "$UNITY_TARGET_DIR/stretchyman.atlas.txt"
|
|
|
+cp -f ../stretchyman/manual-maps/stretchyman.png "$UNITY_TARGET_DIR/"
|
|
|
+cp -f ../stretchyman/manual-maps/stretchyman-normals.png "$UNITY_TARGET_DIR/"
|
|
|
+cp -f ../stretchyman/manual-maps/stretchyman-emission.png "$UNITY_TARGET_DIR/"
|
|
|
+UNITY_TARGET_DIR="$ROOT/spine-unity/Modules/com.esotericsoftware.spine.lwrp-shaders/Spine Skeletons/StretchymanLWRP"
|
|
|
+cp -f ../stretchyman/export/stretchyman-pro.json "$UNITY_TARGET_DIR/stretchyman.json"
|
|
|
+cp -f ../stretchyman/manual-maps/stretchyman.atlas "$UNITY_TARGET_DIR/stretchyman.atlas.txt"
|
|
|
+cp -f ../stretchyman/manual-maps/stretchyman.png "$UNITY_TARGET_DIR/"
|
|
|
+cp -f ../stretchyman/manual-maps/stretchyman-normals.png "$UNITY_TARGET_DIR/"
|
|
|
+cp -f ../stretchyman/manual-maps/stretchyman-emission.png "$UNITY_TARGET_DIR/"
|
|
|
|
|
|
UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine Examples/Spine Skeletons/Eyes"
|
|
|
cp -f $UNITY_SOURCE_DIR/eyes/export/eyes.json "$UNITY_TARGET_DIR/eyes.json"
|
|
@@ -545,3 +577,12 @@ cp -f $UNITY_SOURCE_DIR/whirlyblendmodes/export/whirlyblendmodes.json "$UNITY_TA
|
|
|
cp -f $UNITY_SOURCE_DIR/whirlyblendmodes/export/whirlyblendmodes-pma.atlas "$UNITY_TARGET_DIR/whirlyblendmodes.atlas.txt"
|
|
|
sed -i 's/whirlyblendmodes-pma.png/whirlyblendmodes.png/g' "$UNITY_TARGET_DIR/whirlyblendmodes.atlas.txt"
|
|
|
cp -f $UNITY_SOURCE_DIR/whirlyblendmodes/export/whirlyblendmodes-pma.png "$UNITY_TARGET_DIR/whirlyblendmodes.png"
|
|
|
+
|
|
|
+echo "--"
|
|
|
+echo "Note regarding spine-xna and spine-unity:"
|
|
|
+echo "Some textures (normalmap, emission, rim-mask) need manual update."
|
|
|
+echo "Please update the following maps when an atlas update is needed:"
|
|
|
+echo "[xna and unity] 'raptor/manual-maps' to match png in 'raptor/export/'"
|
|
|
+echo "[unity only] 'stretchyman/manual-maps' to match png in 'stretchyman/export/'"
|
|
|
+echo "If not updated, the old consistent file-set in the directory is used."
|
|
|
+echo "--"
|