Skip to content
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

Hardware GL fog support #25

Open
zturtleman opened this issue Apr 7, 2013 · 0 comments
Open

Hardware GL fog support #25

zturtleman opened this issue Apr 7, 2013 · 0 comments

Comments

@zturtleman
Copy link
Member

r_useGlFog 1 is intended to use OpenGL fog instead of software fog. Maybe performance using GL fog will be better for some hardware?

It is based on code from RTCW's global fog, though in Spearmint it is used for fog volumes too.

OpenGL1 renderer:
exp global fog: everything is gray.
linear global fog + r_vertexLight 1: no issues (other than ones caused by vextexlight)?
linear global fog + r_vertexLight 0: issues on multistage shaders.

( Tested using ET's battery map, +set fs_game etmain +devmap battery )

OpenGL2 renderer:
there is some code for r_useGlFog, but it isn't run. Need to port code over from GL1.


It's buggy and currently doesn't have clear benefits over current fog method. Not a high priority to get working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant