r_stencilbits is a Soldier of Fortune 2 console variable (CVAR) in the Graphics group. Stencil buffer depth in bits. Its default value is "8".
- Default
8- Syntax
seta r_stencilbits "8"- Example
seta r_stencilbits "8"- Notes
- Required for stencil shadow rendering. 8 is standard.
How to change it
Open the console with ~ and type the command:
seta r_stencilbits "8"
To keep the setting, put the same line (starting with seta) in your config file, such as sof2mp.cfg in the game's base folder.

