]> git.xonotic.org Git - xonotic/netradiant.git/commit
* picomodel: do some guessings about shader paths to handle more cases out of the...
authorGarux <garux@mail.ru>
Sat, 29 Sep 2018 11:39:10 +0000 (14:39 +0300)
committerThomas Debesse <dev@illwieckz.net>
Tue, 27 Apr 2021 01:45:03 +0000 (03:45 +0200)
commit30171b846f490444ef059fa04974b0b5f8a191b8
tree9159130a518dae9371235fa7ce4cd64a0a8f3d10
parent3ad35c718a0418a388f47bc2d425e6ab3c398788
* picomodel: do some guessings about shader paths to handle more cases out of the box; ones are based on material and diffuse map names:
name w/o path: assume textures are in the folder, where model file is
absolute path or with ..: try to cut at "/models/" or "/textures/" (as if leading to game folders); do previous case, if not
strip extensions and turn slashes to forward ones anytime
* picomodel::obj: fix diffuse map paths loading from .mtl
12 files changed:
libs/picomodel/picointernal.c
libs/picomodel/picointernal.h
libs/picomodel/picomodel.c
libs/picomodel/pm_3ds.c
libs/picomodel/pm_ase.c
libs/picomodel/pm_fm.c
libs/picomodel/pm_lwo.c
libs/picomodel/pm_md2.c
libs/picomodel/pm_md3.c
libs/picomodel/pm_mdc.c
libs/picomodel/pm_obj.c
libs/picomodel/pm_terrain.c