PBR (Strata shader): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Limit scope)
mNo edit summary
Line 7: Line 7:
{{MatParam|$surfaceprop|string|Links the surface to a set of physical properties (footstep sounds, bullet penetration {{confirm}}, etc)}}
{{MatParam|$surfaceprop|string|Links the surface to a set of physical properties (footstep sounds, bullet penetration {{confirm}}, etc)}}


==Adjustment==
===Adjustment===
{{MatParam|$basetexturetransform|matrix|Transforms the texture before use in the material. This does not affect [[lightmaps]] on the surface.}}
{{MatParam|$basetexturetransform|matrix|Transforms the texture before use in the material. This does not affect [[lightmaps]] on the surface.}}


Line 38: Line 38:
{{MatParam|$useenvambient|boolean|Makes the reflections use the lowest mip level of the cubemap for ambient light instead of the ambient cubes. Can cause artifacts with moving props.}}
{{MatParam|$useenvambient|boolean|Makes the reflections use the lowest mip level of the cubemap for ambient light instead of the ambient cubes. Can cause artifacts with moving props.}}


==Transparency==
===Transparency===
{{MatParam|$alpha|float|Scales the opacity of an entire material.}}
{{MatParam|$alpha|float|Scales the opacity of an entire material.}}
{{MatParam|$alphatest|bool|Specifies a mask to use to determine binary opacity.}}
{{MatParam|$alphatest|bool|Specifies a mask to use to determine binary opacity.}}

Revision as of 11:32, 8 July 2023

English (en)Русский (ru)Translate (Translate)
Shader-ball.png

PBR It uses many different texture maps to create a more accurate simulation of light.

Note.pngNote:Similar unrelated PBR-based shaders are also used in Titanfall branch Titanfall branch and Source 2 Source 2.

Supported Parameters

Basics

$basetexture $surfaceprop

Adjustment

$basetexturetransform

PBR

$mraotexture $model $speculartexture

Confirm:Which games use $useparallax and which ones use $parallax? Are they the same?

$parallax $useparallax $parallaxdepth $parallaxcenter

Lighting

$bumpmap $normaltexture $emissiontexture


Reflection

$envmap $envmapcontrast $envmapsaturation $envmaptint $useenvambient

Transparency

$alpha $alphatest $alphatestreference $translucent

%keywords - A list of keywords separated by commas. Examples of keywords are: architectural,brown,gray,grime,hanger,industrial,metal,modern,shed,urban,wall,floor

See Also