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: Fix q3map2 lightstyles and parsing q3gl2_sun shader keyword #627

Merged
merged 2 commits into from
Dec 23, 2023

Conversation

zturtleman
Copy link

@zturtleman zturtleman commented Dec 23, 2023

Fix q3map2 lightstyles on World of Padman's wop_trashmap (Fixes #622 and two other issues).

Fix skipping the next shader line after q3gl2_sun shader keyword if it doesn't have the "optional" arguments.

Fixes World of Padman wop_trashmap.

For r_mergeLightmaps 1
- Fix tcMod transform on "map $lightmap" stages
- Fix external lightmap image texcoords if shader also has an internal
  lightmap

For r_sunlightMode 1
- Fix "tcGen lightmap" stages with blendFunc GL_SRC_ALPHA GL_ONE being
  converted to white image + modulate lightmap and drawing incorrectly
If mapLightScale and shadowScale weren't included at the end of
q3gl2_sun, the next shader line was skipped by SkipRestOfLine().

COM_ParseExt() with allowLineBreaks=qfalse, returns "" once and
then goes to the next line anyway. (Doesn't work well multiple
"optional" tokens. It looks like a vanilla bug.)
@zturtleman zturtleman merged commit b07ff2a into ioquake:main Dec 23, 2023
3 checks passed
@zturtleman zturtleman deleted the opengl2_fix_q3map2_lightstyles branch December 23, 2023 19:31
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.

OpenGL2: r_mergeLightmaps 1 breaks shaders using internal and external lightmaps
1 participant