ModelingTools: Add details customization of EBakeMapType properties for bake tools.

#rb rinat.abdrashitov
#rnx
#jira none
#preflight 61a10c47c3287aab2748fcea

#ROBOMERGE-AUTHOR: lonnie.li
#ROBOMERGE-SOURCE: CL 18302621 in //UE5/Release-5.0/... via CL 18302626
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v895-18170469)

[CL 18302631 by lonnie li in ue5-release-engine-test branch]
This commit is contained in:
lonnie li
2021-11-26 19:27:18 -05:00
parent ea7a8f3c0f
commit 1a8e4ef56f
9 changed files with 507 additions and 57 deletions
@@ -25,7 +25,7 @@ enum class EBakeMapType
None = 0,
/* Normals in tangent space */
TangentSpaceNormal = 1 << 0,
TangentSpaceNormal = 1 << 0 UMETA(DisplayName = "Tangent Normal"),
/* Ambient occlusion sampled across the hemisphere */
AmbientOcclusion = 1 << 1,
/* Normals skewed towards the least occluded direction */
@@ -35,7 +35,7 @@ enum class EBakeMapType
/* Transfer a given texture */
Texture = 1 << 4,
/* Interpolated normals in object space */
ObjectSpaceNormal = 1 << 5 UMETA(DisplayName = "Normal"),
ObjectSpaceNormal = 1 << 5 UMETA(DisplayName = "Object Normal"),
/* Geometric face normals in object space */
FaceNormal = 1 << 6,
/* Positions in object space */
@@ -63,34 +63,34 @@ public:
EBakeVertexOutput OutputMode = EBakeVertexOutput::RGBA;
/** The bake output type to generate */
UPROPERTY(EditAnywhere, Category = BakeOutput, meta=(
UPROPERTY(EditAnywhere, Category = BakeOutput, meta=(Bitmask, BitmaskEnum = EBakeMapType,
ValidEnumValues="TangentSpaceNormal, AmbientOcclusion, BentNormal, Curvature, Texture, ObjectSpaceNormal, FaceNormal, Position, MaterialID, MultiTexture",
EditCondition="OutputMode == EBakeVertexOutput::RGBA", EditConditionHides))
EBakeMapType OutputType = EBakeMapType::TangentSpaceNormal;
int32 OutputType = static_cast<int32>(EBakeMapType::TangentSpaceNormal);
/** The bake output type to generate in the Red channel */
UPROPERTY(EditAnywhere, Category = BakeOutput, meta=(
UPROPERTY(EditAnywhere, Category = BakeOutput, meta=(Bitmask, BitmaskEnum = EBakeMapType,
ValidEnumValues="None, AmbientOcclusion, Curvature",
EditCondition="OutputMode == EBakeVertexOutput::PerChannel", EditConditionHides))
EBakeMapType OutputTypeR = EBakeMapType::None;
int32 OutputTypeR = static_cast<int32>(EBakeMapType::None);
/** The bake output type to generate in the Green channel */
UPROPERTY(EditAnywhere, Category = BakeOutput, meta=(
UPROPERTY(EditAnywhere, Category = BakeOutput, meta=(Bitmask, BitmaskEnum = EBakeMapType,
ValidEnumValues="None, AmbientOcclusion, Curvature",
EditCondition="OutputMode == EBakeVertexOutput::PerChannel", EditConditionHides))
EBakeMapType OutputTypeG = EBakeMapType::None;
int32 OutputTypeG = static_cast<int32>(EBakeMapType::None);
/** The bake output type to generate in the Blue channel */
UPROPERTY(EditAnywhere, Category = BakeOutput, meta=(
UPROPERTY(EditAnywhere, Category = BakeOutput, meta=(Bitmask, BitmaskEnum = EBakeMapType,
ValidEnumValues="None, AmbientOcclusion, Curvature",
EditCondition="OutputMode == EBakeVertexOutput::PerChannel", EditConditionHides))
EBakeMapType OutputTypeB = EBakeMapType::None;
int32 OutputTypeB = static_cast<int32>(EBakeMapType::None);
/** The bake output type to generate in the Alpha channel */
UPROPERTY(EditAnywhere, Category = BakeOutput, meta=(
UPROPERTY(EditAnywhere, Category = BakeOutput, meta=(Bitmask, BitmaskEnum = EBakeMapType,
ValidEnumValues="None, AmbientOcclusion, Curvature",
EditCondition="OutputMode == EBakeVertexOutput::PerChannel", EditConditionHides))
EBakeMapType OutputTypeA = EBakeMapType::None;
int32 OutputTypeA = static_cast<int32>(EBakeMapType::None);
/** The vertex color channel to preview */
UPROPERTY(EditAnywhere, Category = BakeOutput, meta = (TransientToolProperty))