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

Emissive #979

Merged
merged 3 commits into from
May 15, 2023
Merged

Emissive #979

merged 3 commits into from
May 15, 2023

Conversation

ikeough
Copy link
Contributor

@ikeough ikeough commented May 11, 2023

BACKGROUND:
While debugging materials for Hypar's Unreal integration, we noticed that emissive factor was only being applied if the emissive texture was used as well. You should be able to use one without the other.

DESCRIPTION:
This PR applies the emissive factor whether there is an emissive texture or not, and it sets the emissive factor to 0 by default, as opposed to 1.0. An emissive factor of 1 would cause all materials to appear to emit light.

REQUIRED:

  • All changes are up to date in CHANGELOG.md.

Materials with increasing emissive factors.
image


This change is Reviewable

@ikeough
Copy link
Contributor Author

ikeough commented May 13, 2023

Emissive in the glTF spec is RGB. We currently flatten this into one value. I might also take this opportunity to make it RGB, so we can support colors of emitted light that aren't the material color.

Copy link
Contributor

@katehryhorenko katehryhorenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 3 of 3 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 1 approvals obtained

@ikeough ikeough merged commit 67a10c3 into master May 15, 2023
2 checks passed
@ikeough ikeough deleted the emissive branch May 15, 2023 22:55
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

2 participants