Skip to content
llyzs edited this page Jul 11, 2017 · 1 revision

Scissor clipping is generally bad for stereoscopic 3D rendering, however, it is often required when rendering 2D elements in some games. There are two different ways to manipulate how scissor clipping should be enabled or disabled whenever the game wants to use it. Which way to go is up to you, and the game you are trying to fix, which way is easier and whether disabling scissor clipping has an impact on performance.

  1. Disable scissor clipping globally, but optionally enable some for certain shaders (this is the default approach)
[Rendering]
rasterizer_disable_scissor = 1
[ShaderOverrideLighting]
hash = xxxx
disable_scissor = 0
  1. Do not disable scissor clipping globally, but only disable some for certain shaders
[Rendering]
rasterizer_disable_scissor = 0
[ShaderOverrideLighting]
hash = xxxx
disable_scissor = 1

In simple words, if you specify "disable_scissor" in a [ShaderOverride*] section, that shader will use the setting to override the global "rasterizer_disable_scissor" setting in [Rendering] section. Otherwise, the global "rasterizer_disable_scissor" will be used.