Better Sprite and Model Lighting


Better Sprite and Model Lighting

Improvements to model lighting include per-bone lighting by static and dynamic light sources and consistently correct model lighting all through long sequences, where a model travels a fair distance from its actual location. Example: forklift.mdl.

Correct lighting has been implemented for all sprites for which the type was set to alphtest at compile time and rendermode was not set to additive in game. For example, blood spatters are tinted by the environment’s lighting rather than glowing in the dark.

Lighting of both models and sprites is affected not only by the world, but also by the nearest brush model, if any.

Note: If the improved lighting produces poor results in a particular game, you can disable it by setting r_lighting_extended to 0.