kristiker / source1import

Import Source game content into Source 2
MIT License
68 stars 11 forks source link

Can include-d materials be converted to `vmat_prefab`? #32

Closed kristiker closed 11 months ago

kristiker commented 1 year ago

vmat_prefab is avaliable in latest dota 2. This new asset type defines base parameters that materials can inherit, similar to source 1 Patch. Difference is vmat_prefab does not compile to vmat_c. There is no documentation or any example usages.

https://github.com/kristiker/source1import/blob/cfd49a2a9da016e77ab72fb43b9311f3538450a4/utils/materials_import.py#L1350

This file in samples is a good example. https://github.com/kristiker/source1import/blob/a0b955d1aac640576bf1bbb37a3ba4c42d42a336/source_game/materials/models/props_foliage/tree_include_small.vmt#L1-L19

Materials included by map-specific patches not as much.