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

generate less shaders when r_sunlightMode is disabled #36

Closed
wants to merge 1 commit into from

Conversation

inolen
Copy link

@inolen inolen commented Feb 1, 2014

  • don't generate shaders for LIGHTDEF_USE_SHADOWMAP when r_sunlightMode is disabled (16 less iirc)
  • wrap usage of standard derivatives functions in conditional so they can compile when unsupported and disabled

… is disabled

wrap usage of standard derivatives functions in conditional so they can compiled when unsupported and disabled
@NuclearMonster
Copy link
Member

Is this still an issue? (that would then require an updated PR)

@SmileTheory
Copy link
Member

The changes to the lightall shader aren't relevant any more, the code calculating tangent spaces in the fragment program has been removed.

Not compiling in LIGHTDEF_USE_SHADOWMAP code when r_sunlightMode is 0 is still relevant though, but I can write a quick commit for that myself.

@SmileTheory
Copy link
Member

468da0f

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.

None yet

3 participants