PBR (Strata shader): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (clean up, replaced: See Also → See also, {{Language subpage → {{langsp)
mNo edit summary
Line 1: Line 1:
{{langsp}}It uses many different texture maps to create a more accurate simulation of light. {{Strata|2}} uses a modified version of [[Adding PBR to your mod|Thexa4's PBR shader]], which is capable of rendering lightmaps on brushes.
{{langsp}}It uses many different texture maps to create a more accurate simulation of light. {{Strata|2}} uses a modified version of [[Adding PBR to your mod|Thexa4's PBR shader]], which is capable of rendering lightmaps on brushes. It can be used on both brushes ''and'' models.


{{note|Similar unrelated PBR-based shaders are also used in {{tfbranch|4.1}} and {{Source2|4.1}}.}}
{{note|Similar unrelated PBR-based shaders are also used in {{tfbranch|4.1}} and {{Source2|4.1}}.}}
Line 31: Line 31:
{{MatParam|$parallaxcenter|float|Defines the center of the parallax map. Essentially how deep the highest point is. This is often used to make the parallax mapping flush with a wall or floor, as if it is not flush it can visually extend past the floor, which can be very distracting. 0.5 is a good starting point.}}
{{MatParam|$parallaxcenter|float|Defines the center of the parallax map. Essentially how deep the highest point is. This is often used to make the parallax mapping flush with a wall or floor, as if it is not flush it can visually extend past the floor, which can be very distracting. 0.5 is a good starting point.}}
{{MatParam|$blendtintbymraoalpha|bool|Blend tint by the alpha channel in MRAO texture. Similar to $blendtintbybasealpha for [[VertexLitGeneric|VLG]]}}
{{MatParam|$blendtintbymraoalpha|bool|Blend tint by the alpha channel in MRAO texture. Similar to $blendtintbybasealpha for [[VertexLitGeneric|VLG]]}}
 
{{MatParam|$model|bool|Enables its use on models. ''Must'' be set to work on models.}}
==={{p2ce}}Paint===
==={{p2ce}}Paint===
{{MatParam|$paintsplatnormalmap|texture|The paint splat normal map to use when paint is enabled on the surface}}
{{MatParam|$paintsplatnormalmap|texture|The paint splat normal map to use when paint is enabled on the surface}}

Revision as of 09:28, 19 March 2024