Simple Cutting Plane

Description

In this project I have created an application where a de ned plane, can be usedto ‘cut’ slices off objects in a scene. The ‘cut’ reveals a clean surface rather than the backface, giving the illusion that the object is solid, without using voxels. It allows for several objects.
The plane discards fragments in front of it, and uses the plane to calculate light. The plane also affect the shadow map generation, creating dynamic shadows for when the object changes.

The idea behind was to allow for cheap ‘destructible’ objects for e.g. when an enemy loses a limb by a sword. A more in depth description can be found here

Github Project