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

Fix darkened video-texture-target #5615

Merged
merged 1 commit into from
Aug 17, 2022
Merged

Conversation

takahirox
Copy link
Contributor

@takahirox takahirox commented Jul 26, 2022

Fixes: #5599

This PR fixes darkened video-texture-target problem caused when upgrading our Three.js to r141.

Refer to "Fix darkened camera view" PR #5577 for the details because the root issue is same.

The previous same purpose PR #5604 was reverted because it didn't work correctly because of losing material.onBeforeRender when cloning materials. This PR resolves it by copying the function.

This commit fixes darkened video-texture-target problem
caused when upgrading our Three.js to r141.

Refer to "Fix darkened camera view" commit for the details
because the root issue is same.

The previous same purpose commit was reverted because
it didn't work correctly because of losing
material.onBeforeRender when cloning materials.
This commit resolves it by copying the function.
Copy link
Contributor

@brianpeiris brianpeiris left a comment

Choose a reason for hiding this comment

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

LGTM

@takahirox takahirox merged commit 960aaf3 into master Aug 17, 2022
@takahirox takahirox deleted the FixDarkenedVideoTextureTarget2 branch August 17, 2022 05:21
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.

video-texture-target is darkened since THREE 141 update
2 participants