support map 'bump'

From wiki: `some implementations use 'map_bump' instead of 'bump' below`
This commit is contained in:
Shiwei Wang 2025-02-26 10:17:04 +08:00 committed by GitHub
parent 9884aa86b0
commit d05c317bca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1201,6 +1201,18 @@ int read_mtllib(fastObjData* data, void* file, const fastObjCallbacks* callbacks
}
break;
case 'b':
case 'B':
p++;
if (p[0] == 'u' &&
p[1] == 'm' &&
p[2] == 'p' &&
is_whitespace(p[3]))
{
p = read_map(data, p + 3, &mtl.map_bump);
}
break;
case '#':
break;
}