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

Make MToon10's fog work. #1237

Merged
merged 1 commit into from
Sep 21, 2021
Merged

Make MToon10's fog work. #1237

merged 1 commit into from
Sep 21, 2021

Conversation

Santarh
Copy link
Contributor

@Santarh Santarh commented Sep 21, 2021

MToon10 シェーダのフォグが動いていなかったので修正しました。

Fix #1211

@Santarh Santarh requested a review from ousttrue September 21, 2021 08:17
Copy link
Contributor

@ousttrue ousttrue left a comment

Choose a reason for hiding this comment

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

よさそう(よく知らないw)

@ousttrue ousttrue merged commit 8507a3b into vrm-c:master Sep 21, 2021
@@ -43,11 +43,12 @@ half4 MToonFragment(const FragmentInput fragmentInput) : SV_Target
mtoonInput.viewDirWS = normalize(input.viewDirWS);
mtoonInput.litColor = litColor.rgb;
mtoonInput.alpha = alpha;
const half4 col = GetMToonLighting(unityLighting, mtoonInput);
half4 col = GetMToonLighting(unityLighting, mtoonInput);
Copy link
Contributor Author

@Santarh Santarh Sep 24, 2021

Choose a reason for hiding this comment

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

const ついてたから、フォグのマクロ内で変更できずにコンパイルエラーになっていた


UNITY_APPLY_FOG(i.fogCoord, col);
// Apply Fog
UNITY_APPLY_FOG(fragmentInput.varyings.fogCoord, col);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

i はそもそも存在しないのでコンパイルエラーになっていた

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.

Shader error in 'VRM10/MToon10': undeclared identifier 'i'
2 participants