Fix seg fault when no material assigned to object in viewer example.

Bump version v1.0.2.
This commit is contained in:
Syoyo Fujita
2016-10-24 23:58:33 +09:00
parent 6c6390f034
commit c2474e27ab
3 changed files with 29 additions and 17 deletions

View File

@@ -23,6 +23,7 @@ THE SOFTWARE.
*/
//
// version 1.0.2 : Improve parsing speed by about a factor of 2 for large files(#105)
// version 1.0.1 : Fixes a shape is lost if obj ends with a 'usemtl'(#104)
// version 1.0.0 : Change data structure. Change license from BSD to MIT.
//
@@ -75,6 +76,7 @@ typedef struct {
float clearcoat_roughness; // [0, 1] default 0
float anisotropy; // aniso. [0, 1] default 0
float anisotropy_rotation; // anisor. [0, 1] default 0
float pad0;
std::string roughness_texname; // map_Pr
std::string metallic_texname; // map_Pm
std::string sheen_texname; // map_Ps