Talk:PBR (Strata shader)

From Valve Developer Community
Jump to navigation Jump to search
Icon-message-48px.png
This is the discussion page of PBR (Strata shader). To add a comment, use the Edit button near the headline of the appropriate section. To create a new section, you can use the Add topic button at the top of this page.
Comments on talk pages should be signed with "~~~~", which will be converted into your signature and a timestamp.

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)

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. --Equalizer5118 (talk) 16:22, 11 Aug 2023