Skip to content

Commit

Permalink
Merge pull request #1272 from pixiv/fix/mtoon-non-transparent
Browse files Browse the repository at this point in the history
Fix transparency issues with mtoon material
  • Loading branch information
ke456-png authored Aug 28, 2023
2 parents 365fff8 + ca73b58 commit 9d70d37
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/three-vrm-materials-mtoon/src/shaders/mtoon.frag
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,10 @@ void main() {
col = outlineColorFactor.rgb * mix( vec3( 1.0 ), col, outlineLightingMixFactor );
#endif

#ifdef OPAQUE
diffuseColor.a = 1.0;
#endif

gl_FragColor = vec4( col, diffuseColor.a );
postCorrection();
}

0 comments on commit 9d70d37

Please sign in to comment.