Talk:PBR (Strata shader): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Replaced content with "{{Discussion page}}")
Tag: Replaced
m (Nesciuse moved page Talk:Multipage Base Pages Temp Storage/PBR (Strata shader) to Talk:PBR (Strata shader) without leaving a redirect: Moving back to proper place)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Discussion page}}
{{Discussion page}}
== 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
[[User:BenLubar|BenLubar]] ([[User talk: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]] ([[User talk:Equalizer5118|talk]]) 16:22, 11 Aug 2023

Latest revision as of 17:21, 15 July 2024

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