title: How to change gltf material to cartoon material?
body: <p>I'm not familiar with three.js and shader. I export a gltf dragon model with texture from C4d and load it into meshstandard material in three.js. I want to change them into cartoon material. With the model stroke, I can traverse the gltf material like this</p>
  <pre class="lang-js prettyprint-override"><code>mesh.traverse((node: any) =&gt; {
      let newMat = new THREE.ShaderMaterial({
          uniforms: {
          },
          vertexShader: vertexShader,
          fragmentShader: fragmentShader,
      });
  
      node.material = newMat
  });
  </code></pre>
  <p>I found a cartoon rendering tutorial <a href="https://blog.csdn.net/weixin_37683659/article/details/79953500" rel="nofollow noreferrer">https://blog.csdn.net/weixin_37683659/article/details/79953500</a></p>
  <p>But I still don't know how to combine this</p>