View Full Version : Cutaway shader with solid fill using stencil buffer

02-20-2015, 01:29 PM
Trying to achieve this look 1635 using a cutaway shader with stencil buffer to fill in the clipped parts. The solid ground 1634 i use looks like this 1633 after clipping, notice the backfaces are also clipped. i don't know how to apply the stencil solution discussed here https://www.opengl.org/discussion_boards/showthread.php/169569-cap-clipped-complex-geometry?p=1194165#post1194165 (""). Can anyone explain me how to do it in this case?