Material Color Inconsistencies: mudanças entre as edições
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 resumo de edição |
||
(Uma revisão intermediária pelo mesmo usuário não está sendo mostrada) | |||
Linha 1: | Linha 1: | ||
Sometimes when loading model materials, the color might differ from what other viewers are showing. | 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, | If you don't want this to happen, disable these behaviors by turning off your '''<code>AssetLoaderOptions</code> <code>ApplyGammaCurveToMaterialColors</code>''' and '''<code>LoadTexturesAsSRGB</code>''' fields. | ||
Another reason for colors to differ | Another reason for colors to differ is when TriLib does not apply ambient color to FBX materials. | ||
You can enable the | You can enable the '''<code>FBXReader.ApplyAbientColor</code>''' static field so TriLib can apply ambient color to FBX materials. |
Edição atual tal como às 09h07min de 18 de maio de 2024
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.