dimanche 9 octobre 2016

webgl - how to slice an object using stencil buffer

i have an object (ex. cube) and i draw it using drawArrays function how to take a slice from it using stencil buffer or any other way ? Note: i tried discard in the fragment shader and it makes the object empty from inside.




Aucun commentaire:

Enregistrer un commentaire