Skip to content

Fix Lightmappedgeneric and vbsp matrix functions for Parallax Corrected Cubemaps #415

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Zeldaboy14
Copy link

@Zeldaboy14 Zeldaboy14 commented Mar 31, 2025

(Describe your PR here and then fill out the checklist at the bottom)

Shiro assisted in this fix, and now we don't need the custom matrixinvert.h functions anymore, because we use built-in engine functions for inversing Parallax corrected cubemaps. This also fix's the assertion error you'd get when building a map with a debug vbsp. LightmappedGeneric has also been updated so mat_specular 0 doesn't break brushs anymore (parallax didn't check if envmap's existed, thus weird rendering was going on because it was attempting to bind non-existent envmaps to the textures).


Does this PR close any issues?

  • (Optional) Insert issue number(s) and any related info here
  • As far as im aware, it does not. Issue was undocumented for several years. Think strata source has the same issue (no access, so assumption)

PR Checklist

  • [X ] My PR follows all guidelines in the CONTRIBUTING.md file
  • My PR targets a develop branch OR targets another branch with a specific goal in mind

Shiro assisted in this fix, and now we don't need the custom matrixinvert.h functions anymore, because we use built-in engine functions for inversing Parallax corrected cubemaps. LightmappedGeneric has also been updated so mat_specular 0 doesn't break brushs anymore
@Zeldaboy14 Zeldaboy14 changed the title Fix Lightmappedgeneric and vbsp matrix functions Fix Lightmappedgeneric and vbsp matrix functions for Parallax Corrected Cubemaps Mar 31, 2025
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