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

Lighting Attenuation #2471

Merged
merged 2 commits into from Jun 8, 2015
Merged

Lighting Attenuation #2471

merged 2 commits into from Jun 8, 2015

Conversation

degasus
Copy link
Member

@degasus degasus commented May 28, 2015

Recreate of PR #2021
I've rebased and cleaned up the commit a bit, and added a last one to use the same normalization also for the other configurations.

@degasus
Copy link
Member Author

degasus commented May 28, 2015

@NanoByte011 Can you please review my last patch?

@NanoByte011
Copy link
Contributor

ok good stuff, but there are a few tweaks I didn't have committed yet that fix other things (like Mario Tennis score and preview court), reviewing your code has motivated me to finish this off now, do you mind if I take it from here?

@degasus
Copy link
Member Author

degasus commented May 28, 2015

@NanoByte011 you're welcome :D

@neobrain
Copy link
Member

neobrain commented Jun 8, 2015

"attn"? u srs?

- Fixes remaining lighting issues (Mario Tennis, etc)
- Apply same fixes to Software Renderer
- Corrected zero length light direction vector to resolve with normal direction (essentially becomes LIGHTDIF_NONE which was what I was after)
- Refactored Light Attenuation into inline function in Software Renderer
- Corrected zero length light direction vector to resolve with normal direction (essentially becomes LIGHTDIF_NONE which was what I was after)
- Change the API of this shared function to use points for output variables (degasus)
@degasus degasus changed the title Lighting attn Lighting Attenuation Jun 8, 2015
@degasus
Copy link
Member Author

degasus commented Jun 8, 2015

I've droped my last commit as it seems to not be correct. So this PR is mostly the same as NanoByte's.

His changes LGTM, so ready for merging IMO.

@NanoByte011 Your next changes are welcome, but I'd like to merge this here right now.

CrossVR added a commit that referenced this pull request Jun 8, 2015
@CrossVR CrossVR merged commit 58f9b05 into dolphin-emu:master Jun 8, 2015
@dolphin-emu-bot
Copy link
Contributor

FifoCI detected that this change impacts graphical rendering. Here are the behavior differences detected by the system:

  • chibi-robo-fastdepth on sw-lin-mesa: diff
  • fifa-street on sw-lin-mesa: diff
  • mario-tennis-menu on sw-lin-mesa: diff
  • mtennis-zfreeze on sw-lin-mesa: diff
  • sw3-dt on sw-lin-mesa: diff

automated-fifoci-reporter

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