Garry's Mod CSG attempt


I always wonder how could be using CSG (constructible solid geometry) on Garry’s Mod, so I did an attempt implementing a CSG.JS LUA version into the engine.

It still pretty buggy, but could be usefull for studying, ideas, or a base for a new project.

Anyway, I’ve posted it here:

There are more details about the implementation on the repository. Feel free to use it as you wish.

Yep, I should disable these brush shadows

Bobblehead did this a while back but it’s nice to see another attempt.

If I’m not wrong, seems his implementation works by modifying the stencil buffer, which won’t allow colliders generation. The one I’m studying works for 3D surfaces.