Talk:PBR (Strata shader)

From Valve Developer Community
Jump to: navigation, search
Icon-message-48px.png
Welcome to Talk:PBR (Strata shader)!
This is the start of the PBR (Strata shader) discussion page.

To add a new message, click on "Add Topic/Reply" button below, and set the "Subject".
To add a Reply, do the same as above, but leave the "Subject" blank.

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)

ERR
UserAvatarFrame-Equalizer5118.png
Equalizer9:22, 11 August 2023 (UTC−7)
Thank you, I was just reading the parameter list from shaders.json, so I wrote down everything that was on there whether I knew what it meant or not.