🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
Latest ClippingPlanes Activity
![Need to clip depth to inside of](https://uploads.gamedev.net/forums/monthly_2024_06/ce01c778cd2049f3a0d37d66adfec48a.tfury_2024-06-07_17-40-03.png)
Found a solution. What I had was mostly correct, but I needed to flush the ZBuffer, then re-draw my portal triangles to the depth buffer after drawing the contents of the portal.
void RENDER_StartPolyStencil(vertexStruct* v, int n)
{
glEnable(GL_STENCIL_TEST);
glDepthMask(GL_TRUE);
glStencilMask…
Advertisement
Advertisement