Material Color Inconsistencies

De TriLib
Revisão de 14h40min de 23 de novembro de 2022 por Trilib (discussão | contribs) (Criou página com 'Sometimes when loading model materials, the color might differ from what other viewers are showing. By default, TriLib will convert material color values and texture colors t...')
(dif) ← Edição anterior | Revisão atual (dif) | Versão posterior → (dif)
Ir para navegação Ir para pesquisar

Sometimes when loading model materials, the color might differ from what other viewers are showing.

By default, TriLib will convert material color values and texture colors to the gamma (sRGB) representation.

If you don't want this to happen, you can disable these behaviors by disabling your AssetLoaderOptions's "ApplyGammaCurveToMaterialColors" and "LoadTexturesAsSRGB" fields.

Another reason for colors to differ happens when TriLib does not applies ambient color to FBX materials.

You can enable the "FBXReader.ApplyAmbientColor" static field, so TriLib will apply ambient color to FBX materials.