ATOM-15086 Image Pipeline Unexpectedly Pre-Multiplying Alpha into Color Channels (#5358)
Applied the discard alpha in the begining of converting. Also deleted some unused processing settings and steps. Signed-off-by: Qing Tao <55564570+VickyAtAZ@users.noreply.github.com>
This commit is contained in:
@@ -100,13 +100,6 @@ namespace ImageProcessingAtom
|
||||
//compare whether two images are same. return true if they are same.
|
||||
virtual bool CompareImage(const IImageObjectPtr otherImage) const = 0;
|
||||
|
||||
// Writes this image to file used for runtime, overwrites any existing file.
|
||||
// It may write alpha image as attached image into the same file
|
||||
// outFilePaths will save filenames finally saved to since the image might be split and saved to multiple files
|
||||
virtual bool SaveImage(const char* filename, IImageObjectPtr alphaImage, AZStd::vector<AZStd::string>& outFilePaths) const = 0;
|
||||
virtual bool SaveImage(AZ::IO::SystemFileStream& out) const = 0;
|
||||
virtual bool SaveMipToFile(AZ::u32 mip, const AZStd::string& filename) const = 0;
|
||||
|
||||
//get total image data size in memory of all mipmaps. Not includs header and flags.
|
||||
virtual AZ::u32 GetTextureMemory() const = 0;
|
||||
|
||||
@@ -135,9 +128,6 @@ namespace ImageProcessingAtom
|
||||
// The algorithm is based on the Frequency Domain Normal Mapping implementation presented by Neubelt and Pettineo at Siggraph 2013.
|
||||
virtual void GlossFromNormals(bool hasAuthoredGloss) = 0;
|
||||
|
||||
//convert gloss map from legacy distribution to new one. New World is still using legacy gloss map.
|
||||
virtual void ConvertLegacyGloss() = 0;
|
||||
|
||||
//clear image with color
|
||||
virtual void ClearColor(float r, float g, float b, float a) = 0;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user