screenspace_general
Description
This shader is a wrapper for providing custom pixel and vertex shaders, while it is named screenspace_general
there is nothing inherently screenspace
only about this shader, it is merely the name that was chosen before it received extra functionality that allowed it to do more than just screenspace work, as such this is a general shader that can be used on brushes, decals, info_overlays, models, and more.
For more information about creating custom shaders, see the Custom Shaders reference page.
Parameters
string PIXSHADER
Your supplied custom pixel shader. Must have
_ps20
postfix at the end. If you want to use SM3.0 pixel shaders you must also pass a SM3.0 vertex shader, otherwise you are limited to SM2.0b.Default: ""
string VERTEXSHADER
Your supplied custom vertex shader. Must have
_vs20
or _vs30
postfix at the end.Default: ""
boolean LINEARREAD_BASETEXTURE
Whether to linearly read the textures color or to apply gamma correction.
Default: false
boolean LINEARREAD_TEXTURE1
Whether to linearly read the textures color or to apply gamma correction.
Default: false
boolean LINEARREAD_TEXTURE2
Whether to linearly read the textures color or to apply gamma correction.
Default: false
boolean LINEARREAD_TEXTURE3
Whether to linearly read the textures color or to apply gamma correction.
Default: false
boolean LINEARWRITE
Whether to linearly write the textures color or to apply gamma correction.
Default: false
boolean X360APPCHOOSER
Setting this to 1 allows to supply mesh colors, and to multiply meshes to view projection. It's recommended to be set to 1.
This was a workaround added by Valve for the x360, you should now use $VERTEXCOLOR and $VERTEXTRANSFORM instead.