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 transparency issues with mtoon material #1272

Merged
merged 2 commits into from
Aug 28, 2023
Merged

Conversation

ke456-png
Copy link
Contributor

@ke456-png ke456-png commented Aug 25, 2023

fix #1266

@ke456-png ke456-png requested a review from 0b5vr August 25, 2023 02:56
@ke456-png ke456-png self-assigned this Aug 25, 2023
@0b5vr
Copy link
Contributor

0b5vr commented Aug 25, 2023

この変更が原因っぽくない?

mrdoob/three.js#26278

@ke456-png
Copy link
Contributor Author

"@pixiv/three-vrm": "1.0.6" 
"three": "0.146.0"

で問題が再現できたので関係ないと思います。

1.0対応から発生していたのではないかと推測しています

Comment on lines +797 to +800
#ifdef OPAQUE
diffuseColor.a = 1.0;
#endif

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OPAQUEフラグを参照するように修正しました

Copy link
Contributor

Choose a reason for hiding this comment

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

説明: opaque_fragment (もともと output_fragment )チャンクで使われていた OPAQUE 定数がコード内で使われていなかった。定数自体は定義されているので、これをそのまま利用する

Copy link
Contributor

@0b5vr 0b5vr left a comment

Choose a reason for hiding this comment

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

OK!

@ke456-png ke456-png added this to the next milestone Aug 28, 2023
@ke456-png ke456-png merged commit 9d70d37 into dev Aug 28, 2023
6 checks passed
@ke456-png ke456-png deleted the fix/mtoon-non-transparent branch August 28, 2023 09:52
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.

Transparency issues with materials
2 participants