Added support for parameters Ni and Tf in OBJ/MTL file format.

This commit is contained in:
Henryk Blasinski
2017-01-12 17:11:17 -08:00
parent 69052812f5
commit 17cae8ac5a
5 changed files with 25 additions and 4 deletions

View File

@@ -178,6 +178,8 @@ struct Material {
int illumination_model;
//! Index of refraction
ai_real ior;
//! Transparency color
aiColor3D transparent;
//! Constructor
Material()
@@ -185,7 +187,8 @@ struct Material {
, alpha (ai_real( 1.0 ) )
, shineness ( ai_real( 0.0) )
, illumination_model (1)
, ior ( ai_real( 1.0 ) ) {
, ior ( ai_real( 1.0 ) )
, transparent( ai_real( 1.0), ai_real (1.0), ai_real(1.0)) {
// empty
for (size_t i = 0; i < TextureTypeCount; ++i) {
clamp[ i ] = false;