Original Post
Hi all, Just wondering if it was possible to perform CSG (constructive solid geometry) exclusively on the GPU using a shading language, for example, GLSL or HLSL? I've never seen it done before using a shading language on the GPU, but I have seen it done using the stencil buffer with the FF (fixed function) pipeline. Would it be simple or complex with headaches? I'm just wanting to use simple spheres with the basic union, addition and subtraction operations. Any ideas or suggestions? Thanks in advance.