Material Color Inconsistencies: mudanças entre as edições

De TriLib
Ir para navegação Ir para pesquisar
(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...')
 
(Sem diferença)

Edição das 17h50min de 23 de novembro de 2022

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.