Material Color Inconsistencies

De TriLib
Revisão de 09h07min de 18 de maio de 2024 por Trilib (discussão | contribs)
(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.

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

If you don't want this to happen, disable these behaviors by turning off your AssetLoaderOptions ApplyGammaCurveToMaterialColors and LoadTexturesAsSRGB fields.

Another reason for colors to differ is when TriLib does not apply ambient color to FBX materials.

You can enable the FBXReader.ApplyAbientColor static field so TriLib can apply ambient color to FBX materials.