Finality Engine
Loading...
Searching...
No Matches
TextureImportSettings.h File Reference

Persists per-texture color-space choices. More...

#include <Core/Core.h>
#include <filesystem>
#include <string>

Go to the source code of this file.

Namespaces

namespace  FINALITY

Enumerations

enum class  FINALITY::TextureColorSpace { FINALITY::Automatic , FINALITY::SRGB , FINALITY::Linear }

Functions

TextureColorSpace FINALITY::ReadTextureColorSpace (const std::filesystem::path &texture)
bool FINALITY::SaveTextureColorSpace (const std::filesystem::path &texture, TextureColorSpace colorSpace, std::string &error)

Detailed Description

Persists per-texture color-space choices.

Texture settings distinguish color data from linear data. Reimport must refresh dependent material bindings so existing scene materials use the rebuilt texture.

Usage
Use sRGB for authored color textures and linear treatment for data textures. The intended interpretation belongs to the asset import settings.

Definition in file TextureImportSettings.h.