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

Unity2022以上でOpenGL ESを使う場合、Distortion付けるとが真っ黒になる不具合の修正 #68

Merged
merged 1 commit into from
Feb 2, 2024

Conversation

S20817
Copy link
Contributor

@S20817 S20817 commented Jan 26, 2024

不具合

Unity2022以上でOpenGL ESを使う場合、Distortion付けるとが真っ黒になる

原因

ParticlesApplyDistortion.shaderのZTestがAlwaysに設定されてなくて、Opengl ESの環境では2022から使われる新しいBlit処理でZTestが通れなかったらのが真っ黒になった原因です。

修正方法

ParticlesApplyDistortion.shaderにZTestをAlwaysにすることを含め、Unity標準のPost Shaderに合わせて設定します。

修正確認

確認環境:Unity 2022.3.18LST
グラフィックAPI:OpenGL ES 3.2
Distortion機能が正しく作動することを確認しました。

@S20817 S20817 self-assigned this Jan 26, 2024
Copy link
Member

@Haruma-K Haruma-K left a comment

Choose a reason for hiding this comment

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

ありがとうございます 🙏

@S20817 S20817 merged commit 2e60c76 into main Feb 2, 2024
1 check passed
@S20817 S20817 deleted the fix/bugfix branch February 2, 2024 02:02
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