Ivan Avdeev
e26ce740f1
vk: cut orig file extension from material files
...
E.g. load `pbr/halflife.wad/halflife.mat` not `pbr/halflife.wad/halflife.wad.mat`
Requires changes to the PBR repo.
Reference: #578
2023-09-25 12:44:41 -04:00
Ivan Avdeev
638bd163af
vk: remove chrome material type; patch roughness manually instead
...
Also, material struct is now embedded into geometry, so it can be
individually patched.
2023-09-22 09:43:27 -04:00
Ivan Avdeev
07f1bac938
vk: pass material reference explicitly in geom structure
...
This is needed to enable advanced material patching, where the material
can be picked up based on source type, render mode, surface number, etc
etc and all of the above combined if needed.
Previous scheme was picking up materials very late when all of this info
has been already lost.
2023-09-19 13:05:12 -04:00
Ivan Avdeev
6d3c5bfa3e
vk: add runtime-toggleable debug logs with module granularity
...
Use e.g. `vk_debug_log "mat,tex,brush"` to enable verbose debug (-dev 2)
logs for Material, Textures and Brush modules.
2023-08-29 12:31:57 -04:00
Ivan Avdeev
f99d43ec4c
add a bunch of wip changes wrt studio model cache
2023-08-28 09:11:48 -07:00
Ivan Avdeev
4f43b316a6
rt: material: print fauly lines on unknown keys
2023-05-04 11:10:22 -07:00
Ivan 'provod' Avdeev
58433a2221
rt: only load textures for potentially usable materials
...
Skip loading textures for materials which are not going to be used.
2023-05-04 11:10:22 -07:00
Ivan Avdeev
1fd9e49f63
vk: add normal_scale to materials
2023-04-12 11:57:07 -07:00
Ivan Avdeev
9116b0268e
vk: scale metalness/roughness textures by m/r values in material
...
fixes #342
2023-04-12 11:57:07 -07:00
Ivan Avdeev
51318fc77f
vk: read alpha for material base_color, fixes #308
2023-04-12 11:57:07 -07:00
Ivan Avdeev
053d26e870
move ref_vk to ref/vk
2023-02-16 10:30:31 -08:00