未验证 提交 31a53418 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #18671 from Mugen87/dev43

MeshToonMaterial: Fix clipping planes.
export default /* glsl */`
#if NUM_CLIPPING_PLANES > 0
#if ! defined( STANDARD ) && ! defined( PHONG ) && ! defined( MATCAP )
#if ! defined( STANDARD ) && ! defined( PHONG ) && ! defined( MATCAP ) && ! defined( TOON )
varying vec3 vViewPosition;
#endif
......
export default /* glsl */`
#if NUM_CLIPPING_PLANES > 0 && ! defined( STANDARD ) && ! defined( PHONG ) && ! defined( MATCAP )
#if NUM_CLIPPING_PLANES > 0 && ! defined( STANDARD ) && ! defined( PHONG ) && ! defined( MATCAP ) && ! defined( TOON )
varying vec3 vViewPosition;
#endif
`;
export default /* glsl */`
#if NUM_CLIPPING_PLANES > 0 && ! defined( STANDARD ) && ! defined( PHONG ) && ! defined( MATCAP )
#if NUM_CLIPPING_PLANES > 0 && ! defined( STANDARD ) && ! defined( PHONG ) && ! defined( MATCAP ) && ! defined( TOON )
vViewPosition = - mvPosition.xyz;
#endif
`;
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册