How to cut part of the object if it is inside a specific area? like showed on attached image.
PS
Looks like stencil should be used, but I am not really sure how to do it.
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It only takes a minute to sign up.
Sign up to join this communityIf the area is a rectangle you can use a scissor rectangle. It sets that only part of the viewport gets drawn while everything outside of that is not drawn.