Skip to content

Fix material color source ambient and emissive #2083

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 5 commits into
base: master
Choose a base branch
from

Conversation

abaire
Copy link
Contributor

@abaire abaire commented Apr 1, 2025

Fixes lighting in cases where ambient and/or emissive colors are taken from vertex colors rather than the material.

Tests

PR diff results

@abaire
Copy link
Contributor Author

abaire commented Apr 1, 2025

Emissive color is still slightly off, but it's much closer to correct than before. Will keep in draft for a bit to see if I can figure out why, but it'd be interesting to test this against games that have issues with emissive textures.

@Triticum0
Copy link
Collaborator

Triticum0 commented Apr 2, 2025

Might fix Constantine lighting issues #1201

@abaire abaire force-pushed the fix_material_color_source_ambient_and_emissive branch from 2419306 to d70d2a0 Compare April 2, 2025 14:35
@abaire abaire force-pushed the fix_material_color_source_ambient_and_emissive branch from d70d2a0 to 4ec7cce Compare April 2, 2025 15:41
@abaire abaire marked this pull request as ready for review April 2, 2025 16:59
@abaire
Copy link
Contributor Author

abaire commented Apr 2, 2025

Fixed the delta in emissive handling, should be ready for review now.

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.

2 participants