mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-01 05:09:07 +08:00
Merge branch '3.7-beta-cpp' of https://github.com/esotericsoftware/spine-runtimes into 3.7-beta-cpp
This commit is contained in:
commit
a86c5a7f40
@ -45,7 +45,7 @@ namespace Spine {
|
|||||||
internal Skin skin;
|
internal Skin skin;
|
||||||
internal float r = 1, g = 1, b = 1, a = 1;
|
internal float r = 1, g = 1, b = 1, a = 1;
|
||||||
internal float time;
|
internal float time;
|
||||||
internal float scaleX, scaleY;
|
internal float scaleX = 1, scaleY = 1;
|
||||||
internal float x, y;
|
internal float x, y;
|
||||||
|
|
||||||
public SkeletonData Data { get { return data; } }
|
public SkeletonData Data { get { return data; } }
|
||||||
|
|||||||
@ -47,6 +47,7 @@ public:
|
|||||||
|
|
||||||
virtual void TickComponent (float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override;
|
virtual void TickComponent (float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override;
|
||||||
|
|
||||||
|
// Material Instance parents
|
||||||
UPROPERTY(Category = Spine, EditAnywhere, BlueprintReadOnly)
|
UPROPERTY(Category = Spine, EditAnywhere, BlueprintReadOnly)
|
||||||
UMaterialInterface* NormalBlendMaterial;
|
UMaterialInterface* NormalBlendMaterial;
|
||||||
|
|
||||||
@ -59,6 +60,23 @@ public:
|
|||||||
UPROPERTY(Category = Spine, EditAnywhere, BlueprintReadOnly)
|
UPROPERTY(Category = Spine, EditAnywhere, BlueprintReadOnly)
|
||||||
UMaterialInterface* ScreenBlendMaterial;
|
UMaterialInterface* ScreenBlendMaterial;
|
||||||
|
|
||||||
|
// Need to hold on to the dynamic instances, or the GC will kill us while updating them
|
||||||
|
UPROPERTY(Category = Spine, EditAnywhere, BlueprintReadWrite)
|
||||||
|
TArray<UMaterialInstanceDynamic*> atlasNormalBlendMaterials;
|
||||||
|
TMap<spine::AtlasPage*, UMaterialInstanceDynamic*> pageToNormalBlendMaterial;
|
||||||
|
|
||||||
|
UPROPERTY(Category = Spine, EditAnywhere, BlueprintReadWrite)
|
||||||
|
TArray<UMaterialInstanceDynamic*> atlasAdditiveBlendMaterials;
|
||||||
|
TMap<spine::AtlasPage*, UMaterialInstanceDynamic*> pageToAdditiveBlendMaterial;
|
||||||
|
|
||||||
|
UPROPERTY(Category = Spine, EditAnywhere, BlueprintReadWrite)
|
||||||
|
TArray<UMaterialInstanceDynamic*> atlasMultiplyBlendMaterials;
|
||||||
|
TMap<spine::AtlasPage*, UMaterialInstanceDynamic*> pageToMultiplyBlendMaterial;
|
||||||
|
|
||||||
|
UPROPERTY(Category = Spine, EditAnywhere, BlueprintReadWrite)
|
||||||
|
TArray<UMaterialInstanceDynamic*> atlasScreenBlendMaterials;
|
||||||
|
TMap<spine::AtlasPage*, UMaterialInstanceDynamic*> pageToScreenBlendMaterial;
|
||||||
|
|
||||||
UPROPERTY(Category = Spine, EditAnywhere, BlueprintReadWrite)
|
UPROPERTY(Category = Spine, EditAnywhere, BlueprintReadWrite)
|
||||||
float DepthOffset = 0.1f;
|
float DepthOffset = 0.1f;
|
||||||
|
|
||||||
@ -68,9 +86,9 @@ public:
|
|||||||
UPROPERTY(Category = Spine, EditAnywhere, BlueprintReadWrite)
|
UPROPERTY(Category = Spine, EditAnywhere, BlueprintReadWrite)
|
||||||
FLinearColor Color = FLinearColor(1, 1, 1, 1);
|
FLinearColor Color = FLinearColor(1, 1, 1, 1);
|
||||||
|
|
||||||
/** Whether to generate collision geometry for the skeleton, or not. */
|
/** Whether to generate collision geometry for the skeleton, or not. */
|
||||||
UPROPERTY(Category = Spine, EditAnywhere, BlueprintReadWrite)
|
UPROPERTY(Category = Spine, EditAnywhere, BlueprintReadWrite)
|
||||||
bool bCreateCollision;
|
bool bCreateCollision;
|
||||||
|
|
||||||
virtual void FinishDestroy() override;
|
virtual void FinishDestroy() override;
|
||||||
|
|
||||||
@ -79,23 +97,6 @@ protected:
|
|||||||
|
|
||||||
void Flush (int &Idx, TArray<FVector> &Vertices, TArray<int32> &Indices, TArray<FVector2D> &Uvs, TArray<FColor> &Colors, TArray<FVector> &Colors2, UMaterialInstanceDynamic* Material);
|
void Flush (int &Idx, TArray<FVector> &Vertices, TArray<int32> &Indices, TArray<FVector2D> &Uvs, TArray<FColor> &Colors, TArray<FVector> &Colors2, UMaterialInstanceDynamic* Material);
|
||||||
|
|
||||||
// Need to hold on to the dynamic instances, or the GC will kill us while updating them
|
|
||||||
UPROPERTY()
|
|
||||||
TArray<UMaterialInstanceDynamic*> atlasNormalBlendMaterials;
|
|
||||||
TMap<spine::AtlasPage*, UMaterialInstanceDynamic*> pageToNormalBlendMaterial;
|
|
||||||
|
|
||||||
UPROPERTY()
|
|
||||||
TArray<UMaterialInstanceDynamic*> atlasAdditiveBlendMaterials;
|
|
||||||
TMap<spine::AtlasPage*, UMaterialInstanceDynamic*> pageToAdditiveBlendMaterial;
|
|
||||||
|
|
||||||
UPROPERTY()
|
|
||||||
TArray<UMaterialInstanceDynamic*> atlasMultiplyBlendMaterials;
|
|
||||||
TMap<spine::AtlasPage*, UMaterialInstanceDynamic*> pageToMultiplyBlendMaterial;
|
|
||||||
|
|
||||||
UPROPERTY()
|
|
||||||
TArray<UMaterialInstanceDynamic*> atlasScreenBlendMaterials;
|
|
||||||
TMap<spine::AtlasPage*, UMaterialInstanceDynamic*> pageToScreenBlendMaterial;
|
|
||||||
|
|
||||||
spine::Vector<float> worldVertices;
|
spine::Vector<float> worldVertices;
|
||||||
spine::SkeletonClipping clipper;
|
spine::SkeletonClipping clipper;
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user