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

Allow texture() to work under specular in WEBGL mode #6138

Merged
merged 4 commits into from
May 14, 2023
Merged

Allow texture() to work under specular in WEBGL mode #6138

merged 4 commits into from
May 14, 2023

Conversation

inaridarkfox4231
Copy link
Contributor

The purpose is to make texture() and specular coexist.

Resolves #6137

Changes:

Since ambientMaterial(), emissiveMaterial(), specularMaterial() used to process _tex to null, this process has been removed.
Since texture() was setting _useSpecularMaterial etc. to false, that process was removed.

Screenshots of the change:

before/after

before

PR Checklist

Let material and texture coexist.
Allow texture() to use materials.
@inaridarkfox4231
Copy link
Contributor Author

I'll prepare unit tests, later.

texture Material coexisting unit test.
I made a mistake in the timing of setting the uniform in testcode. sorry.
Copy link
Contributor

@davepagurek davepagurek left a comment

Choose a reason for hiding this comment

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

Nice work!

@davepagurek davepagurek merged commit c8ce5fd into processing:main May 14, 2023
@inaridarkfox4231 inaridarkfox4231 deleted the texture_specular_coexist branch May 14, 2023 19:11
@inaridarkfox4231
Copy link
Contributor Author

Thank you for marging and reviewing! Thanks!!('ω')

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.

texture cannot coexist with specular
2 participants