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

VRMUnlitTexture / VRMUnlitCutout shader #32

Closed
wants to merge 1 commit into from

Conversation

kirurobo
Copy link

@kirurobo kirurobo commented Sep 3, 2018

#28 に関連して、MToonの修正をありがとうございます。

ですが公開されているニコニ立体ちゃんVRMモデルでは不自然な透明がまだ解決していないため、Unityのビルトインシェーダー(パッチ 5.6.0p1 のもので確認)

  • Unlit-Normal.shader
  • Unlit-Color.shader
    などと同様に、UNITY_OPAQUE_ALPHA(col.a); を追記してもよいかと考えます。

@kirurobo kirurobo changed the title Fixed unlit shaders VRMUnlitTexture / VRMUnlitCutout shader Sep 3, 2018
@ousttrue
Copy link
Contributor

ousttrue commented Sep 3, 2018

// ------------------------------------------------------------------
//  Alpha helper

#define UNITY_OPAQUE_ALPHA(outputAlpha) outputAlpha = 1.0

@ousttrue ousttrue force-pushed the master branch 2 times, most recently from 257f595 to 08b87b1 Compare September 27, 2018 09:09
@ousttrue ousttrue closed this Feb 27, 2019
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.

2 participants