Talk:PBR (Strata shader): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
 
m (typo)
Line 1: Line 1:
== RE: "what do $flags do?" ==
== 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.
$flags, $flags_defined, $flags2, and $flags_defined2 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
https://github.com/ValveSoftware/source-sdk-2013/blob/0d8dceea4310fde5706b3ce1c70609d72a38efdf/mp/src/public/materialsystem/imaterial.h#L348-L429


[[User:BenLubar|BenLubar]] ([[User talk:BenLubar|talk]]) 04:29, 11 August 2023 (PDT)
[[User:BenLubar|BenLubar]] ([[User talk:BenLubar|talk]]) 04:29, 11 August 2023 (PDT)

Revision as of 04:30, 11 August 2023

RE: "what do $flags do?"

$flags, $flags_defined, $flags2, and $flags_defined2 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)