-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(macOS) Half-Life 2 flashlight/shadows bug, possibly due to OpenGL Renderer issues on Apple Silicon machines. #251
Comments
A better hack than using the awful HL1 flashlight may be to forcibly disable Pixel Shader 2.0b support using the launch option -nops2b, forcing the game to revert to using Pixel Shader 2.0 base instead. You lose a few graphical effects introduced to HL2 post-launch like phong and whatnot (and possibly other stuff that got added with the Orange Box update), but the modern flashlight ends up exhibiting graphical corruption far less often as a result. EDIT: To add to what I mentioned above, I believe that the ps20b codepaths in DrawFlashlight_dx90 in BaseVSShader.cpp are responsible for the corruption artefacts mentioned above. I suspect forcing those to fallback to the legacy ps20 codepath on OSX would alleviate those graphical corruptions without sacrificing other ps20b effects as such (except for flashlight depth texture/shadowing ofc). |
Tested on my M1 MacBook Air,
-Half Life 2
-Half Life 2 Episode One
-Half Life 2 Episode Two
all have a flashlight, and a shadow-casting bug, rendering them incorrectly as shown in the picture.
The text was updated successfully, but these errors were encountered: