@ -177,7 +177,7 @@ const struct {
{ Trade : : MaterialAttribute : : DiffuseTextureCoordinates , 2u } ,
{ Trade : : MaterialAttribute : : DiffuseTextureLayer , 155u } ,
} } } ,
{ " ambient texture properties without texture, fail on unconverta ble " , PhongToPbrMetallicRoughnessFlag : : FailOnUnconverta bleAttributes ,
{ " ambient texture properties without texture, fail on unconverti ble " , PhongToPbrMetallicRoughnessFlag : : FailOnUnconverti bleAttributes ,
Trade : : MaterialData { { } , {
{ Trade : : MaterialAttribute : : DiffuseColor , 0xff3366cc _rgbaf } ,
{ Trade : : MaterialAttribute : : AmbientTextureMatrix , Matrix3 : : scaling ( Vector2 { 0.5f } ) } ,
@ -212,9 +212,9 @@ const struct {
{ Trade : : MaterialAttribute : : SpecularTexture , 3u } ,
{ Trade : : MaterialAttribute : : SpecularTextureCoordinates , 2u } ,
} } ,
" MaterialTools::phongToPbrMetallicRoughness(): unconverta ble Trade::MaterialAttribute::AmbientColor attribute, skipping \n "
" MaterialTools::phongToPbrMetallicRoughness(): unconverta ble Trade::MaterialAttribute::SpecularTexture attribute, skipping \n " } ,
{ " specular color, texture + matrix + layer, ambient texture + coordinates; drop unconverta ble " , PhongToPbrMetallicRoughnessFlag : : DropUnconverta bleAttributes ,
" MaterialTools::phongToPbrMetallicRoughness(): unconverti ble Trade::MaterialAttribute::AmbientColor attribute, skipping \n "
" MaterialTools::phongToPbrMetallicRoughness(): unconverti ble Trade::MaterialAttribute::SpecularTexture attribute, skipping \n " } ,
{ " specular color, texture + matrix + layer, ambient texture + coordinates; drop unconverti ble " , PhongToPbrMetallicRoughnessFlag : : DropUnconverti bleAttributes ,
Trade : : MaterialData { { } , {
{ Trade : : MaterialAttribute : : DiffuseColor , 0xff3366cc _rgbaf } ,
{ Trade : : MaterialAttribute : : SpecularColor , 0x3366ffff _rgbaf } ,
@ -229,9 +229,9 @@ const struct {
{ Trade : : MaterialAttribute : : BaseColor , 0xff3366cc _rgbaf } ,
{ Trade : : MaterialAttribute : : DoubleSided , true }
} } ,
" MaterialTools::phongToPbrMetallicRoughness(): unconverta ble Trade::MaterialAttribute::SpecularColor attribute, skipping \n "
" MaterialTools::phongToPbrMetallicRoughness(): unconverta ble Trade::MaterialAttribute::AmbientTexture attribute, skipping \n "
" MaterialTools::phongToPbrMetallicRoughness(): unconverta ble Trade::MaterialAttribute::SpecularTexture attribute, skipping \n " } ,
" MaterialTools::phongToPbrMetallicRoughness(): unconverti ble Trade::MaterialAttribute::SpecularColor attribute, skipping \n "
" MaterialTools::phongToPbrMetallicRoughness(): unconverti ble Trade::MaterialAttribute::AmbientTexture attribute, skipping \n "
" MaterialTools::phongToPbrMetallicRoughness(): unconverti ble Trade::MaterialAttribute::SpecularTexture attribute, skipping \n " } ,
} ;
const struct {
@ -240,26 +240,26 @@ const struct {
Trade : : MaterialData material ;
const char * message ;
} FailData [ ] {
{ " ambient color, fail on unconverta ble " , PhongToPbrMetallicRoughnessFlag : : FailOnUnconverta bleAttributes ,
{ " ambient color, fail on unconverti ble " , PhongToPbrMetallicRoughnessFlag : : FailOnUnconverti bleAttributes ,
Trade : : MaterialData { { } , {
{ Trade : : MaterialAttribute : : AmbientColor , Color4 { } } ,
} } ,
" MaterialTools::phongToPbrMetallicRoughness(): unconverta ble Trade::MaterialAttribute::AmbientColor attribute \n " } ,
{ " specular texture, fail on unconverta ble " , PhongToPbrMetallicRoughnessFlag : : FailOnUnconverta bleAttributes ,
" MaterialTools::phongToPbrMetallicRoughness(): unconverti ble Trade::MaterialAttribute::AmbientColor attribute \n " } ,
{ " specular texture, fail on unconverti ble " , PhongToPbrMetallicRoughnessFlag : : FailOnUnconverti bleAttributes ,
Trade : : MaterialData { { } , {
{ Trade : : MaterialAttribute : : SpecularTexture , 0u } ,
} } ,
" MaterialTools::phongToPbrMetallicRoughness(): unconverta ble Trade::MaterialAttribute::SpecularTexture attribute \n " } ,
{ " shininess, fail on unconverta ble " , PhongToPbrMetallicRoughnessFlag : : FailOnUnconverta bleAttributes ,
" MaterialTools::phongToPbrMetallicRoughness(): unconverti ble Trade::MaterialAttribute::SpecularTexture attribute \n " } ,
{ " shininess, fail on unconverti ble " , PhongToPbrMetallicRoughnessFlag : : FailOnUnconverti bleAttributes ,
Trade : : MaterialData { { } , {
{ Trade : : MaterialAttribute : : Shininess , 0.5f } ,
} } ,
" MaterialTools::phongToPbrMetallicRoughness(): unconverta ble Trade::MaterialAttribute::Shininess attribute \n " } ,
{ " specular color, both drop & fail on unconverta ble " , PhongToPbrMetallicRoughnessFlag : : FailOnUnconverta bleAttributes | PhongToPbrMetallicRoughnessFlag : : DropUnconverta bleAttributes ,
" MaterialTools::phongToPbrMetallicRoughness(): unconverti ble Trade::MaterialAttribute::Shininess attribute \n " } ,
{ " specular color, both drop & fail on unconverti ble " , PhongToPbrMetallicRoughnessFlag : : FailOnUnconverti bleAttributes | PhongToPbrMetallicRoughnessFlag : : DropUnconverti bleAttributes ,
Trade : : MaterialData { { } , {
{ Trade : : MaterialAttribute : : SpecularTexture , 0u } ,
} } ,
" MaterialTools::phongToPbrMetallicRoughness(): unconverta ble Trade::MaterialAttribute::SpecularTexture attribute \n " } ,
" MaterialTools::phongToPbrMetallicRoughness(): unconverti ble Trade::MaterialAttribute::SpecularTexture attribute \n " } ,
} ;
PhongToPbrMetallicRoughnessTest : : PhongToPbrMetallicRoughnessTest ( ) {