CORRADE_ASSERT(!(_flags&Flag::AmbientTexture),"Trade::PhongMaterialData::ambientColor(): the material has ambient texture",_ambient.color);
return_ambient.color;
}
UnsignedInt&PhongMaterialData::ambientTexture(){
CORRADE_ASSERT(_flags&Flag::AmbientTexture,"Trade::PhongMaterialData::ambientTexture(): the material doesn't have ambient texture",_ambient.texture);
return_ambient.texture;
}
Vector3&PhongMaterialData::diffuseColor(){
CORRADE_ASSERT(!(_flags&Flag::DiffuseTexture),"Trade::PhongMaterialData::diffuseColor(): the material has diffuse texture",_diffuse.color);
return_diffuse.color;
}
UnsignedInt&PhongMaterialData::diffuseTexture(){
CORRADE_ASSERT(_flags&Flag::DiffuseTexture,"Trade::PhongMaterialData::diffuseTexture(): the material doesn't have diffuse texture",_diffuse.texture);
return_diffuse.texture;
}
Vector3&PhongMaterialData::specularColor(){
CORRADE_ASSERT(!(_flags&Flag::SpecularTexture),"Trade::PhongMaterialData::specularColor(): the material has specular texture",_specular.color);
return_specular.color;
}
UnsignedInt&PhongMaterialData::specularTexture(){
CORRADE_ASSERT(_flags&Flag::SpecularTexture,"Trade::PhongMaterialData::specularTexture(): the material doesn't have specular texture",_specular.texture);