UnlitGeneric 材质着色器不遵循 $detailblendfactor

作者: chaorace创建于 2026年7月19日更新于 2026年7月24日

目前,大多数 $detailblendmode 选项除了一个严重问题之外都可以与 UnlitGeneric 着色器一起使用: $detailblendfactor 永远卡在 0 上,无论 VMT 中编写了什么。这个问题的根源在于 UnlitGenericVertexLitGeneric 都依赖于相同的辅助代码来设置 $detailblendfactor: https://GitHub.com/ValveSoftware/source-sdk-2013/blob/88fa198fba3fb85d46d4c95018254693fdc3af0a/src/materialsystem/stdshaders/vertexlitgeneric_dx9_helper.cpp#L1214

内容来源: ValveSoftware/source-sdk-2013