Add options to reconstruct z channel for textures.

This commit is contained in:
Chandler Cox
2024-10-04 15:29:45 -05:00
parent 1414eb9852
commit 6b10ebdc2c
3 changed files with 45 additions and 0 deletions

View File

@@ -61,6 +61,10 @@ API_CLASS(Namespace="FlaxEngine.Tools", Static) class FLAXENGINE_API TextureTool
API_FIELD(Attributes = "EditorOrder(71)")
bool InvertGreenChannel = false;
// True if to invert the green channel on a normal map. Good for OpenGL to DirectX conversion.
API_FIELD(Attributes = "EditorOrder(72)")
bool ReconstructZChannel = false;
// Texture size scale. Allows increasing or decreasing the imported texture resolution. Default is 1.
API_FIELD(Attributes="EditorOrder(80), Limit(0.0001f, 1000.0f, 0.01f)")
float Scale = 1.0f;