Skip to content

Commit 4eb7907

Browse files
authored
Merge pull request #16634 from higharc/normal-clipping-fix
Apply clipping planes in normal material
2 parents 317989c + e6488da commit 4eb7907

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/renderers/shaders/ShaderLib/normal_frag.glsl.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ uniform float opacity;
2727
#include <bumpmap_pars_fragment>
2828
#include <normalmap_pars_fragment>
2929
#include <logdepthbuf_pars_fragment>
30+
#include <clipping_planes_pars_fragment>
3031
3132
void main() {
3233
34+
#include <clipping_planes_fragment>
3335
#include <logdepthbuf_fragment>
3436
#include <normal_fragment_begin>
3537
#include <normal_fragment_maps>

src/renderers/shaders/ShaderLib/normal_vert.glsl.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export default /* glsl */`
2525
#include <morphtarget_pars_vertex>
2626
#include <skinning_pars_vertex>
2727
#include <logdepthbuf_pars_vertex>
28+
#include <clipping_planes_pars_vertex>
2829
2930
void main() {
3031
@@ -55,6 +56,7 @@ void main() {
5556
#include <displacementmap_vertex>
5657
#include <project_vertex>
5758
#include <logdepthbuf_vertex>
59+
#include <clipping_planes_vertex>
5860
5961
#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || ( defined( USE_NORMALMAP ) && ! defined( OBJECTSPACE_NORMALMAP ) )
6062

0 commit comments

Comments
 (0)