Skip to content

Commit

Permalink
Merge pull request #128 from pixiv/mtoonversion
Browse files Browse the repository at this point in the history
supress mToonVersion warning
  • Loading branch information
Yutaka Obuchi authored Sep 13, 2019
2 parents d40245f + 9d894a7 commit 87debff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/vrm/material/MToonMaterial.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import fragmentShader from './shaders/mtoon.frag';
const TAU = 2.0 * Math.PI;

export interface MToonParameters extends THREE.ShaderMaterialParameters {
mToonVersion?: number; // _MToonVersion

cutoff?: number; // _Cutoff
color?: THREE.Vector4; // rgb of _Color
shadeColor?: THREE.Vector4; // _ShadeColor
Expand Down Expand Up @@ -174,6 +176,7 @@ export class MToonMaterial extends THREE.ShaderMaterial {

// == these parameter has no compatibility with this implementation ========
[
'mToonVersion',
'shadeTexture_ST',
'bumpMap_ST',
'receiveShadowTexture_ST',
Expand Down

0 comments on commit 87debff

Please sign in to comment.