obj/mtl loader no longer messes up bump textures when the name starts with a number

Mtl loader was assuming bump textures starting with a number are always using that to scale the bump.
No idea if there are mtl files out there assuming that, but usually scaling parameter is -bm
But it always assumed real filename was following, so as compromise I still allow pure numbers (no other characters following) to be scaling parameters.

Also mtl file can now handle map_Bump on top of map_bump and bump (NASA model assets use that sometimes)


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6602 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
cutealien
2024-03-16 16:32:50 +00:00
parent ac341472d6
commit b10141887f
3 changed files with 13 additions and 5 deletions

View File

@ -1,4 +1,4 @@
Tests finished. 72 tests of 72 passed.
Compiled as DEBUG
Test suite pass at GMT Thu Feb 29 13:39:39 2024
Test suite pass at GMT Sat Mar 16 16:24:16 2024