# JSHexen2 Features

(under construction)

Features
Colored lighting
Mouse wheel support
Glow effects on torches , flames and missiles
Improwed shadows
Water ripple effect
Detail textures , underwater caustics and reflective surfaces
External texture support (TGA and PCX)
Gamma correction
Multitexture Support
Global fog and underwater fog
Colored lighting
cvar | function | default | values
gl_coloredlight | Static colored lights | 1 | (0,1,2)
| Mode 2 is experimental mode which combines white and colored lighting (if available) and sometimes can give better results then just colored lighting. It is also slightly brighter then colored lighting. |  |
| Put lit files into 'DATA1\maps' subdirectory. Lit file format is identical to NewHexen2 format. Use nhlight(lighting by light entities) tool or jsh2colour(lighting by texture) to create lit files. Download lit files generated by by jsh2color here. |  |
gl_colored_dynamic_lights | Dynamic colored lights | 0 | (0,1)
gl_extra_dynamic_lights | Extra dynamic lights | 0 | (0,1)
| Adds more dynamic lights (original Hexen II used very litle dynamic lights) |  |
r_lerp_alias | Alias models light lerping | 0 | (0,1)
| Better lit alias models (Recomended for use with colored lighting) |  |
Mouse wheel support
Succesfully tested with :

- Genius NetScroll+
- Logitech WheelMouse
- MS InteliMouse

Set it up from options menu or from config file : (like this)

bind "MOUSE1" "+attack"
bind "MOUSE2" "+jump"
bind "MOUSE3" "invuse"
bind "MWHEELUP" "invright"
bind "MWHEELDOWN" "invleft"

Glow effects on torches , flames and missiles
cvar | function | default | values
gl_glows | Torches and flames | off : 0 | (0,1)
gl_missile_glows | Missiles | off : 0 | (0,1)
gl_other_glows | Other (Mana & powerups) | off : 0 | (0,1)
Improwed shadows
cvar | function | default | values
r_shadows | Turn on shadow drawing for alias models | off : 0 | (0,1)
| Removed shadows from some objects (weapons, poverups, torches). Other shadows can be removed from models individualy by editing model flags (new flag : EF_NOSHADOW -> 0x1000000 )
gl_stencilshadow | Stencil buffered shadows | off : 0 | (0,1)
| Requires support for 8-bit stencil buffer.Make sure stencil buffer is supported in hardware and enabled. Stencil buffer may be disabled in certain video modes. If it i not enabled stencil buffering will not work or it will be emulated which causes significant slowdowns.
gl_shadowalpha | Shadow transparency | 0.5 | (0.0, 1.0)
Water ripple effect
cvar | function | default | values
gl_waterripple | Water ripple effect | 5 | (0,10)
| Height of a waves |  |
Detail textures , underwater caustics and reflective surfaces
cvar | function | default | values
gl_detailtexture | Detail Textures | off : 0 | (0,1)
| Place detail.tga or detail.pcx in 'DATA1\textures' directory
gl_caustictexture | Underwater caustics | off : 0 | (0,1)
| Place 1 to 32 textures named caust0 to caust31 (TGA or PCX) in 'DATA1\textures' directory |  |
gl_shinytexture | Chrome effects | off : 0 | (0,1)
| Place shiny.tga,shiny2.tga or shiny.pcx,shiny2.pcx in 'DATA1\textures' directory |  |
gl_water_reflection | Water reflection effect | off : 0 | (0,1)
| Place shiny2.tga or shiny2.pcx in 'DATA1\textures' directory |  |
gl_detailscale | Detail texture scale factor | 8 | (1,64)
| Controls ratio between texture coordinates and detail texture coordinates (texture coordinates are scaled by this value) |  |
External texture support (TGA and PCX)
cvar | function | default | values
r_texture_external | External textures | 1 | (0,1)
| Put textures into

'DATA1\textures' or
'DATA1\textures\mapname\'
'DATA1\models\' (Skins and sprites)

Gamma correction
cvar | function | default | values
gamma | Gamma value (0.0 is brightest) | 1.0 | (0.0,1.0)
Multitexture Support
cvar | function | default | values
gl_multitexture | Enables multitexture | off : 0 | (0,1)
| Supports booth SGIS and ARB multitexture. Uses 2 texturing units in booth modes (support for more texturing units will be added later). Uses ARB multitexture by default if present. Use -sgis comand line switch to select SGIS multitexture and -nomtex to disable multitexture. |  |
Separate transparency variables
cvar | function | default | values
r_wateralpha | Water transparency | 0.4 | (0.0,1.0)
r_model_alpha | Alias model transparency | 0.4 | (0.0,1.0)
r_brush_alpha | Brush model transparency | 0.4 | (0.0,1.0)
r_fx_alpha | Sprite transparency | 0.4 | (0.0,1.0)
Global fog and underwater fog
cvar | function | default | values
gl_fogenable | Enable global fog | off : 0 | (0,1)
gl_fogstart | Global fog start | 400 | (200, 4096)
gl_fogend | Global fog end | 2000 | (200, 4096)
gl_fogred | Global fog colour - Red value | 0.5 | (0.0 , 1.0)
gl_foggreen | Global fog colour - Green value | 0.5 | (0.0 , 1.0)
gl_fogblue | Global fog colour - Blue value | 0.5 | (0.0 , 1.0)
gl_underwaterfog | Underwater Fogging | on : 1 | (0,1)