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

OpenGL2: Don't project sun shadows onto nothing #680

Merged
merged 1 commit into from
Jul 27, 2024

Conversation

zturtleman
Copy link

Don't project sun shadows (r_forceSun 1) on to view depth equal to 1.0 (nothing drawn or skybox). This caused a full second shadow of the entire level in tr.screenShadowImage. It would move as the camera far plane changed and rotate/stretch strangely as the camera view changed.

It was visible in-game on lightmapped transparent surfaces facing the skybox and happen to overlap the extra shadow of the level.

This affected the glass in wop_padship's underwater room.


World of Padman (engine fork) screenshots of wop_padship showing the issue:
"oh there's the problem, there is a phantom ship."
shot0003
shot0002
(The glass should all be the same brightness.)

ioquake3 with q3dm1 map:
shot0055
(All maps had a second shadow in the shadowmap image but I don't know of cases it caused issues.)

Don't project sun shadows (r_forceSun 1) on to view depth equal to 1.0
(nothing drawn or skybox). This caused a full second shadow of the
entire level in tr.screenShadowImage. It would move as the camera far
plane changed and rotate/stretch strangely as the camera view changed.

It was visible in-game on lightmapped transparent surfaces facing the
skybox and happen to overlap the extra shadow of the level.

This affected the glass in wop_padship's underwater room.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant