diff options
Diffstat (limited to 'scene.c')
-rw-r--r-- | scene.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -180,6 +180,13 @@ loadobjmodel(Model *m, OBJ *obj) mtl->diffusemap->data->ref++; } + if(objmtl->norm != nil){ + mtl->normalmap = allocmemimaged(objmtl->norm->r, objmtl->norm->chan, objmtl->norm->data); + if(mtl->normalmap == nil) + sysfatal("allocmemimaged: %r"); + mtl->normalmap->data->ref++; + } + addmtlmap(&mtlmap, objmtl, m->nmaterials-1); } |