Garry's Mod Wiki

Revision Difference

Shaders/screenspace_general_8tex#566071

<cat>shader</cat>⤶ <title>screenspace_general_8tex</title>⤶ <shader>⤶ <description>⤶ This is an experiment in shader inheritance. This is the same as <page text="screenspace_general">Shaders/screenspace_general</page>, but binds 8 texture samplers.⤶ For more information about creating custom shaders, see <page text="the Custom Shaders reference page">custom_shaders</page>.⤶ ⤶ This was recently added in version (2025.12.01). It might only be available on the <page text="Dev Branch">Dev_Branch</page> right now.⤶ </description>⤶ ⤶ <parameters>⤶ <item name="PIXSHADER" type="string" default="">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.</item>⤶ <item name="VERTEXSHADER" type="string" default="">Your supplied custom vertex shader. Must have `_vs20` or `_vs30` postfix at the end.</item>⤶ <item name="DISABLE_COLOR_WRITES" type="boolean" default="false"></item>⤶ <item name="ALPHATESTED" type="float" default="0"></item>⤶ <item name="ALPHA_BLEND" type="boolean" default="false"></item>⤶ <item name="ALPHA_BLEND_COLOR_OVERLAY" type="boolean" default="false"></item>⤶ <item name="BASETEXTURE" type="ITexture" default="">Texture that will be supplied to your shader.</item>⤶ <item name="TEXTURE1" type="ITexture" default="">Texture that will be available in slot 1 to your shader.</item>⤶ <item name="TEXTURE2" type="ITexture" default="">Texture that will be available in slot 2 to your shader.</item>⤶ <item name="TEXTURE3" type="ITexture" default="">Texture that will be available in slot 3 to your shader.</item>⤶ <item name="TEXTURE4" type="ITexture" default="">Texture that will be available in slot 4 to your shader.</item>⤶ <item name="TEXTURE5" type="ITexture" default="">Texture that will be available in slot 5 to your shader.</item>⤶ <item name="TEXTURE6" type="ITexture" default="">Texture that will be available in slot 6 to your shader.</item>⤶ <item name="TEXTURE7" type="ITexture" default="">Texture that will be available in slot 7 to your shader.</item>⤶ <item name="LINEARREAD_BASETEXTURE" type="boolean" default="false">Whether to linearly read the textures color or to apply gamma correction.</item>⤶ <item name="LINEARREAD_TEXTURE1" type="boolean" default="false">Whether to linearly read the textures color or to apply gamma correction.</item>⤶ <item name="LINEARREAD_TEXTURE2" type="boolean" default="false">Whether to linearly read the textures color or to apply gamma correction.</item>⤶ <item name="LINEARREAD_TEXTURE3" type="boolean" default="false">Whether to linearly read the textures color or to apply gamma correction.</item>⤶ <item name="LINEARREAD_TEXTURE4" type="boolean" default="false">Whether to linearly read the textures color or to apply gamma correction.</item>⤶ <item name="LINEARREAD_TEXTURE5" type="boolean" default="false">Whether to linearly read the textures color or to apply gamma correction.</item>⤶ <item name="LINEARREAD_TEXTURE6" type="boolean" default="false">Whether to linearly read the textures color or to apply gamma correction.</item>⤶ <item name="LINEARREAD_TEXTURE7" type="boolean" default="false">Whether to linearly read the textures color or to apply gamma correction.</item>⤶ <item name="LINEARWRITE" type="boolean" default="false">Whether to linearly write the textures color or to apply gamma correction.</item>⤶ <item name="VERTEXTRANSFORM" type="boolean" default="false">Verts are in world space.</item>⤶ <item name="VERTEXNORMAL" type="boolean" default="false">Specify vertex normal (compressed) in material format.</item>⤶ <item name="ALPHABLEND" type="boolean" default="false">Whether or not to enable alpha blend.</item>⤶ <item name="MULTIPLYCOLOR" type="boolean" default="false">Whether or not to multiply src and dest color.</item>⤶ <item name="WRITEALPHA" type="boolean" default="false">Whether or not to enable alpha write.</item>⤶ <item name="WRITEDEPTH" type="boolean" default="false">Whether or not to enable depth write.</item>⤶ <item name="TCSIZE0" type="integer" default="2">Number of components in texture coord0.</item>⤶ <item name="TCSIZE1" type="integer" default="0">Number of components in texture coord1.</item>⤶ <item name="TCSIZE2" type="integer" default="0">Number of components in texture coord2.</item>⤶ <item name="TCSIZE3" type="integer" default="0">Number of components in texture coord3.</item>⤶ <item name="TCSIZE4" type="integer" default="0">Number of components in texture coord4.</item>⤶ <item name="TCSIZE5" type="integer" default="0">Number of components in texture coord5.</item>⤶ <item name="TCSIZE6" type="integer" default="0">Number of components in texture coord6.</item>⤶ <item name="TCSIZE7" type="integer" default="0">Number of components in texture coord7.</item>⤶ <item name="CULL" type="boolean" default="0">Culling control - `0` = nocull, `1` = do cull.</item>⤶ <item name="DEPTHTEST" type="boolean" default="0">Enable depth test.</item>⤶ <item name="COPYALPHA" type="boolean" default="0"></item>⤶ <item name="VIEWPROJMAT" type="matrix" default="0">Used by g_viewProjMatrix (register c11) in pixel shader.</item>⤶ <item name="INVVIEWPROJMAT" type="matrix" default="0">Used by g_invViewMatrix (register c15) in pixel shader.</item>⤶ ⤶ <item name="BLENDOPMIN" type="integer" default="0"></item>⤶ ⤶ <item name="VERTEXCOLOR" type="number"></item>⤶ <item name="IGNOREZ" type="boolean" default="false">Whether or not to ignore the ZBuffer.</item>⤶ ⤶ <item name="C0_X" type="float" default="0">Dummy parameter you can utilise for your custom shader.</item>⤶ <item name="C0_Y" type="float" default="0">Dummy parameter you can utilise for your custom shader.</item>⤶ <item name="C0_Z" type="float" default="0">Dummy parameter you can utilise for your custom shader.</item>⤶ <item name="C0_W" type="float" default="0">Dummy parameter you can utilise for your custom shader.</item>⤶ ⤶ <item name="C1_X" type="float" default="0">Dummy parameter you can utilise for your custom shader.</item>⤶ <item name="C1_Y" type="float" default="0">Dummy parameter you can utilise for your custom shader.</item>⤶ <item name="C1_Z" type="float" default="0">Dummy parameter you can utilise for your custom shader.</item>⤶ <item name="C1_W" type="float" default="0">Dummy parameter you can utilise for your custom shader.</item>⤶ ⤶ <item name="C2_X" type="float" default="0">Dummy parameter you can utilise for your custom shader.</item>⤶ <item name="C2_Y" type="float" default="0">Dummy parameter you can utilise for your custom shader.</item>⤶ <item name="C2_Z" type="float" default="0">Dummy parameter you can utilise for your custom shader.</item>⤶ <item name="C2_W" type="float" default="0">Dummy parameter you can utilise for your custom shader.</item>⤶ ⤶ <item name="C3_X" type="float" default="0">Dummy parameter you can utilise for your custom shader.</item>⤶ <item name="C3_Y" type="float" default="0">Dummy parameter you can utilise for your custom shader.</item>⤶ <item name="C3_Z" type="float" default="0">Dummy parameter you can utilise for your custom shader.</item>⤶ <item name="C3_W" type="float" default="0">Dummy parameter you can utilise for your custom shader.</item>⤶ </parameters>⤶ </shader>