hello!
i have got a question about stencil shaodwing!
i managed to make a stencil buffer demo, but now i have to make a function which creates shadow volumes on the fly!
how can i do that?
note: the shadow volume should only be created with the mesh edges, and not with the whole polygons of the mesh, because it wont work ;)
should look like this:
i have got a question about stencil shaodwing!
i managed to make a stencil buffer demo, but now i have to make a function which creates shadow volumes on the fly!
how can i do that?
note: the shadow volume should only be created with the mesh edges, and not with the whole polygons of the mesh, because it wont work ;)
should look like this: