Newlight Directionality Fix
Update 3: This patch is now released

Sources standard model lighting comes with a hacky way of boosting ambient lighting on characters and props. This is called half-lambertian lighting. The light is wrapped around the edges of a model which gives the lighting a softer appearance, prevents overly harsh shadows from normal maps. This was implemented as an easy and performant way to improve the appearance of lighting, at a cost of realism.
Consequentially, newlights also had half-lambertian lighting implemented. However, it is currently left in a broken state. The result is that meshes with $phong or $halflambert get lit from ALL sides perpendicular to newlights, including ones with opposing normals. Shadows help to mask this bug, but it still appears glaringly incorrect.
As it turns out however, the aforementioned command existed, which disables halflambert for newlights, but not regular lights!
A small album showcasing the issue with comparison to Blenders realtime renderer https://imgur.com/a/5iy2Nhf
- As explained, this will only affect models that use $halflambert, which mostly means things with specularity/phong.
- Some areas may not quite be lit the same as they may have depended on the bug. Notably areas entirely lit by newlights may seemingly lack ambient lighting and have overly dark shadows.
- Xen plant lights for instance have shadows on the bulbs as they did not use illumtextures.
- I used an automated process to mass add the parameter, as such some materials will actually be more desirable with the effect off, notably plants, and anything that uses nocull.
To implement this fix in your own mods, add this parameter anywhere within your models VMTs. You only need to add this if you are using $phong or $halflambert. This parameter does not need to be added to lightmappedgeneric or similar as it doesn’t use either. If you are a mapper, be sure to supplement your newlights with regular lights for better ambient lighting.
Mod folder is Steamsteamappsworkshopcontent362890
This commands existence was brought to my attention by Rimas and this fix will be included in the chapter 5 release of Black Mesa: Blue Shift!