This article relates to the game "Counter-Strike 2". Click here for more information.
This article relates to the software/tool "Counter-Strike 2 Workshop Tools". Click here for more information.
This article's documentation is for Source 2. Click here for more information.

Csgo Complex

From Valve Developer Community
Jump to navigation Jump to search
English (en)Translate (Translate)

Csgo Complex is a very commonly used shader in CS2, usually used for non blendable textures or emissive textures. Page is loosely organized based on how it appears in Material Editor.

Texture Inputs and Values

Color

  • Color (Image Input) - Path to raw image, accepting .psd, .tga, .tif, .pfm, .mks, .png, .jpg, .exr
    • Image Suffix: _color
  • Color Tint - Tints the material the color set here.
  • Tex Coord Center - [Clarify]
    • Left Box - [Clarify], U coord, ranges 0-1
    • Right Box - [Clarify], V coord, ranges 0-1
  • Tex Coord Scale - Adjusts the U and V scale for this layer.
    • Left Box - [Clarify], U coord, multiplier, any number.
    • Right Box - [Clarify], V coord, multiplier, any number.
  • Tex Coord Rotation - Rotates the texture. Range is -360 to +360
  • Tex Coord Offset - [Clarify]
    • Left Box - [Clarify], U coord, ranges 0-1
    • Right Box - [Clarify], V coord, ranges 0-1
  • Tex Coord Scroll Speed - [Clarify]
    • Left Box - [Clarify], U Coord
    • Right Box - [Clarify], V Coord
  • Scale TexCoord U By Model Scale Axis - [Clarify]
    • UV.u*model.x - [Clarify]
    • UV.u*model.y - [Clarify]
    • UV.u*model.z - [Clarify]
  • Scale TexCoord V By Model Scale Axis - [Clarify]
    • UV.u*model.x - [Clarify]
    • UV.u*model.y - [Clarify]
    • UV.u*model.z - [Clarify]

Translucent (Appears When Toggled)

  • When Alpha Test is Enabled
    • Alpha Test Reference (Range: 0.010 - 0.990)
    • Anti Aliased Edge Strength (Range: 0.000 - 1.000)
  • When Translucent is Enabled
    • Opacity Scale (Range: 0.000 - 1.000)
  • Translucency (Image Input) - Path to raw image, accepting .psd, .tga, .tif, .pfm, .mks, .png, .jpg, .exr
    • Image Suffix: _trans

Normal

  • Normal (Image Input) - Path to raw image, accepting .psd, .tga, .tif, .pfm, .mks, .png, .jpg, .exr
    • Image Suffix: _normal

Lighting

  • Roughness (Image Input) - Path to raw image, accepting .psd, .tga, .tif, .pfm, .mks, .png, .jpg, .exr
    • Image Suffix: _rough

Ambient Occlusion

  • Ambient Occlusion (Image Input) - Path to raw image, accepting .psd, .tga, .tif, .pfm, .mks, .png, .jpg, .exr
    • Image Suffix: _ao

Fog

  • Fog Enabled - Choose whether or not material is affected by fog.

Texture Address Mode

  • Address Mode U - [Clarify]
    • Wrap - [Clarify]
    • Mirror - [Clarify]
    • Clamp - [Clarify]
    • Border - [Clarify]
    • MirrorOnce - [Clarify]
  • Address Mode V - [Clarify]
    • Wrap - [Clarify]
    • Mirror - [Clarify]
    • Clamp - [Clarify]
    • Border - [Clarify]
    • MirrorOnce - [Clarify]

Shader Options

Shadows

  • Do Not Cast Shadows - Disables shadows being cast from this material.

2-Sided Rendering

  • Render Backfaces - Disables culling on backfaces.
  • Don't Flip Backface Normals - Doesn't flip the backfaces normals, when Render Backfaces is enabled.

Z-Buffering

  • Disable Z Buffering - [Clarify]
  • Depth Bias - [Clarify]
  • Occlusion Culling Bounds Scale - [Clarify]
    • When Enabled: Adds a variable multiplier with a range of 1.000 - 100.000

Z-Prepass

  • Disable Z Prepass - [Clarify]

Translucent

  • Alpha Test - [Clarify]
  • Translucent - [Clarify]
  • Additive Blend - [Clarify]

Per-Instance Tint Mask

  • Tint Mask - [Clarify]
    • When Enabled: Adds a Tint Mask section to the Color variable.

PBR

  • Anistropic Gloss - [Clarify]
  • Self Illum - [Clarify]
  • Metalness Texture - [Clarify]
  • Transmissive Backface Ndotl - [Clarify]
  • Use Albedo for Transmissive - [Clarify]
  • Disable Transmissive Shadows - [Clarify]
  • Cloth Shading - [Clarify]

Detail Texture

  • Detail Texture - [Clarify]
    • None - [Clarify]
    • Mod2x - [Clarify]
    • Overlay - [Clarify]
    • Normals - [Clarify]
    • Overlay and Normals - [Clarify]

Secondary UV

  • Secondary Uv - [Clarify]

Animation

  • Texture Animation - [Clarify]
  • Texture Animation Mode - [Clarify]
    • Sequential - [Clarify]
    • Random - [Clarify]
    • Scripted - [Clarify]

Decal Texture

  • Decal Texture - [Clarify]

Decal Blend Mode

  • Decal Blend Mode - [Clarify]

Vertex Color

  • Paint Vertex Colors - [Clarify]

Lightmapping

  • Ignore Face Normals for Lighting - [Clarify]