Posted April 21, 20187 yr I need some way to cut off everything, that is outside of mask. Here's code i have wrote: https://pastebin.com/e2ugQ0Xa And here's the screenshot what i have got: Ligther area is actually mask, it shouldn't be visible and also everything else should be rendered only inside that lighter area. I also have tried other ways to crop my table(scissor, depthmask with framebuffer), but no success. p.s. Stencil is turned on Edited April 21, 20187 yr by XsergeiX
April 23, 20187 yr Author Asked everyone who could know that but no result - nobody knows. Does anyone from here know how could be that problem solved? Edited April 23, 20187 yr by XsergeiX
July 3, 20187 yr In your PreInit call Minecraft.getMinecraft().getFramebuffer().enableStencil();. Edited August 4, 20187 yr by Spectre0987
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.