Talk:PBR (Strata shader)

From Valve Developer Community
Revision as of 04:29, 11 August 2023 by BenLubar (talk | contribs) (→‎RE: "what do $flags do?": new section)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

RE: "what do $flags do?"

$flags, $flags_defined, $flags2, and $flags2_defined are the same for every shader. You should not be setting them manually in a vmt, instead, set one of the variables that gets turned into the bitfield, like $alphatest, $nocull, etc.

https://github.com/ValveSoftware/source-sdk-2013/blob/0d8dceea4310fde5706b3ce1c70609d72a38efdf/mp/src/public/materialsystem/imaterial.h#L348-L429

BenLubar (talk) 04:29, 11 August 2023 (PDT)