A slice you can actually bite
Eat the Toast! is a semester-long final project for RIT’s CSCI 716 Computational Geometry course. I built a Unity WebGL prototype where clicking a 3D slice of toast removes a piece of its mesh. A cylinder defines the cut, and a run-time Boolean difference creates the new shape.
The idea came from playtesting Sometimes Toast is O.K. Players wanted to take smaller bites instead of consuming the whole slice at once. This was a separate experiment to explore that interaction; it was not integrated into the released game.

What I built
- Interactive mesh cutting with adjustable cylinder position and size, plus support for other regular polygon cutters.
- Shaded, shaded-wireframe, culling-wireframe, and transparent-wireframe views to inspect the result.
- Camera controls and a barycentric-coordinate wireframe shader that works in WebGL.
The prototype uses Unity 2022.3.14f1, URP, Shader Graph, C#, and LibCSG-Runtime for the mesh Boolean operation.
Limits and next steps
The cut mesh does not yet receive finished UV coordinates. Complex meshes take longer to process, so I added a one-second cooldown between cuts. The calculation also runs without parallelization. Those constraints made the prototype a useful study of the gap between a satisfying interaction idea and a robust game-ready implementation.
