Jump to content

[1.12][OpenGL] Stencil buffer does not work as it suppose to


XsergeiX

Recommended Posts

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:

image.png.31497136849cf7163d2280ba2f83755f.png

 

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 by XsergeiX
Link to comment
Share on other sites

  • 2 months later...

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.