Skip to content

Commit

Permalink
Merge pull request #1445 from pixiv/fix/restore-alpha-test-workaound
Browse files Browse the repository at this point in the history
fix: restore alpha test workaround
  • Loading branch information
yue4u authored Jul 22, 2024
2 parents 27b0efb + d085383 commit 8d669ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/three-vrm-materials-mtoon/src/MToonMaterial.ts
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,7 @@ export class MToonMaterial extends THREE.ShaderMaterial {
this.uniforms.uvAnimationScrollXOffset.value += delta * this.uvAnimationScrollXSpeedFactor;
this.uniforms.uvAnimationScrollYOffset.value += delta * this.uvAnimationScrollYSpeedFactor;
this.uniforms.uvAnimationRotationPhase.value += delta * this.uvAnimationRotationSpeedFactor;
this.uniforms.alphaTest.value = this.alphaTest;

this.uniformsNeedUpdate = true;
}
Expand Down

0 comments on commit 8d669ae

Please sign in to comment.