переведи: {{Language subpage}}{{Shader PBR engine={{strata 4.1}}}} It uses many…
- User
переведи: {{Language subpage}}{{Shader|PBR|engine={{strata|4.1}}}} It uses many different texture maps to create a more accurate simulation of light.
{{note|Similar unrelated PBR-based shaders are also used in {{tfbranch|4.1}} and {{Source2|4.1}}.}} ==Supported Parameters==
===Basics=== {{MatParam|basetexture|texture|Base texture with lighting built in.}} {{MatParam|basetexture2|texture|Blended texture for use with displacements}} {{MatParam|flags|int|Flags}} {{MatParam|flags_defined|int|Flags_defined}} {{todo|What do flags do?}} {{MatParam|flags2|int|Flags}} {{MatParam|flags_defined2|int|Flags_defined}}
===Appearance=== {{MatParam|basetexturetransform|matrix|Transforms the texture before use in the material. This does not affect [[lightmaps]] on the surface.}} {{MatParam|color|color|Adjusts the color of the texture}} {{MatParam|color2|color|Ditto}} {{MatParam|frame|int|Sets which frame to use if basetexture is animated}} {{MatParam|frame2|int|Sets which frame to use if basetexture2 is animated}} {{MatParam|srgbtint|color|Tint value to be applied when running on new-style srgb parts}}
===Flashlight=== {{MatParam|flashlighttexture|texture|Flashlight spotlight shape texture (default is effects/flashlight001)}} {{MatParam|flashlighttextureframe|int|Animation frame to use if $flashlighttexture is animated}}
===PBR=== {{MatParam|mraotexture|texture|Defines an MRAO map to use. Needed for the texture to actually use PBR features. Metalness is on the red channel, roughness is on the green, and ambient occlusion is on the blue channel.}} {{MatParam|mraoframe|int|Frame to use if mraotexture2|texture|Defines an MRAO map to use for the blended texture. Needed for the texture to actually use PBR features. Metalness is on the red channel, roughness is on the green, and ambient occlusion is on the blue channel.}} {{MatParam|maraotexture2 is animated}} {{MatParam|mraoscale|color|Specifies the strength of Metalness(R), Roughness(G), and Ambient Occlusion(B) for mraoscale2|color|Specifies the strength of Metalness(R), Roughness(G), and Ambient Occlusion(B) for parallaxdepth|float|Defines the depth of the parallax map}} {{MatParam|blendtintbymraoalpha|bool|Blend tint by the alpha channel in MRAO texture. Similar to $blendtintbybasealpha for [[VertexLitGeneric|VLG]]}}
- Assistant