Strata Source

Documentation

Home ReferenceVScriptAngelscriptPanorama
GitHub
Edit

PBR

This page contains information about the parameters of the PBR shader.

Tip: Use “Ctrl+F” to find a specific parameter you are looking for

Parameters

Basics

$basetexture <texture>

 Default: shadertest/BaseTexture

 Description: Base texture with lighting built in.

$basetexture2 <texture>

 Default: shadertest/lightmappedtexture

 Description: Blended texture for use with displacements


Appearance

$basetexturetransform <matrix>

 Default: center .5 .5 scale 1 1 rotate 0 translate 0 0

 Description: Base Texture Texcoord Transform. Transforms the texture before use. Does not affect lightmaps.

$color <color>

 Default: [1 1 1]

 Description: Adjusts the color of $basetexture

$color2 <color>

 Default: [1 1 1]

 Description: Adjusts the color of $basetexture2

$frame <int>

 Default: 0

 Description: Sets what static frame to use if $basetexture is animated

$frame2 <int>

 Default: 0

 Description: Sets what static frame to use if $basetexture2 is animated

$srgbtint <color>

 Default: [1 1 1]

 Description: Tint value to be applied when running on new-style srgb parts

$hsv <color>

 Default: [1 1 1]

 Description: HSV color to transform $basetexture texture with

$hsv_blend <bool>

 Default: 0

 Description: Blend untransformed color and HSV transformed color


Flashlight

$flashlighttexture <texture>

 Default: effects/flashlight001

 Description: Flashlight spotlight shape texture

$flashlighttextureframe <int>

 Default: 0

 Description: Sets what static frame to use if $flashlighttexture is animated


Physically Based Rendering

$model <bool>

 Default: ``

 Description: Specifies if the material is intended for use on models or brushes. If set to 1, acts like VLG (phong for lights, no lightmaps). If set to 0, acts like LMG.

$mraotexture <texture>

 Default: ``

 Description: Texture with metalness in R, roughness in G, ambient occlusion in B for $basetexture

$mraoframe <int>

 Default: ``

 Description: Sets what static frame to use if $mraotexture is animated.

$mraotexture2 <texture>

 Default: ``

 Description: Texture with metalness in R, roughness in G, ambient occlusion in B for $basetexture2

$mraoframe2 <int>

 Default: ``

 Description: Sets what static frame to use if $mraotexture2 is animated.

$mraoscale <color>

 Default: [1 1 1]

 Description: Factors for metalness, roughness, and ambient occlusion for $mraotexture

$mraoscale2 <color>

 Default: [1 1 1]

 Description: Factors for metalness, roughness, and ambient occlusion for $mraotexture2

$parallax <bool>

 Default: 0

 Description: Enables Parallax Occlusion Mapping.

$parallaxdepth <float>

 Default: 0.0030

 Description: Depth of the Parallax Map. Essentially the intensity of the heightmap.

$parallaxcenter <float>

 Default: 0.5

 Description: Center depth of the Parallax Map. Essentially how far away from the face the center of the heightmapped material appears to be.

$blendtintbymraoalpha <bool>

 Default: 0

 Description: Blend tint by the alpha channel in MRAO texture. Similar to $blendtintbybasealpha for VLG


Alpha

$alpha <float>

 Default: 1.0

 Description: Scales the transparency of the whole image

$alphatestreference <float>

 Default: 0

 Description: Specifies the threshold alpha channel value at which the surface should be transparent instead of opaque. A value of “.3” will create a thicker shape while a value of “.7” will create a thinner shape.


Emissive

$emissiontexture <texture>

 Default: ``

 Description: Emission texture

$emissionframe <int>

 Default: ``

 Description: Static frame to use if $emissiontexture is animated.

$emissiontexture2 <texture>

 Default: ``

 Description: Emission texture for $basetexture2

$emissionframe2 <int>

 Default: ``

 Description: Static frame to use if $emissiontexture2 is animated.

$emissionscale <color>

 Default: [1 1 1]

 Description: Color to multiply $emissiontexture with

$emissionscale2 <color>

 Default: [1 1 1]

 Description: Color to multiply $emissiontexture2 with


Reflection

$envmap <texture>

 Default: ``

 Description: Set the cubemap for this material.

$envmapframe <int>

 Default: ``

 Description: Static frame to use if $envmap is animated.


Bumpmap

$normaltexture <texture>

 Default: ``

 Description: Normalmap texture (deprecated, use $bumpmap)

$bumpmap <texture>

 Default: ``

 Description: Bumpmap texture for $basetexture

$bumpframe <int>

 Default: ``

 Description: Static frame to use if $bumpmap is animated.

$bumpmap2 <texture>

 Default: ``

 Description: Bumpmap texture for $bsaetexture2

$bumpframe2 <int>

 Default: ``

 Description: Static frame to use if $bumpmap2 is animated.


Paint

$paintsplatnormalmap <texture>

 Default: paint/splatnormal_default

 Description: The paint splat normal map to use when paint is enabled on the surface

$paintsplatbubblelayout <texture>

 Default: paint/bubblelayout

 Description: The layout texture which defines the distribution of bubbles in the paint

$paintsplatbubble <texture>

 Default: paint/bubble

 Description: The normal mapped texture of a single bubble

$paintenvmap <texture>

 Default: paint/paint_envmap_hdr

 Description: Envmap that is consistent across all surfaces