Material Color Inconsistencies
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.