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

Reset default specular to 1. #4423

Merged
merged 1 commit into from
Jul 12, 2022
Merged

Reset default specular to 1. #4423

merged 1 commit into from
Jul 12, 2022

Conversation

GSterbrant
Copy link
Contributor

Description

Relates to: #4386 & #4419.

This PR reverts default specular to 0. For materials created in code using metalness, there might be a loss of specular highlights due to specular tint having an effect even on metalness materials. To fix this, on your material, set the specular like so:

material.specular = new pc.Color(1, 1, 1);

@GSterbrant GSterbrant merged commit 80e146a into main Jul 12, 2022
@GSterbrant GSterbrant deleted the gsterbrant_spec_default_fix branch July 12, 2022 10:31
@GSterbrant GSterbrant self-assigned this Jul 13, 2022
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