Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Add "real" clipping #49

Open
Nazariglez opened this issue Dec 30, 2017 · 3 comments
Open

Add "real" clipping #49

Nazariglez opened this issue Dec 30, 2017 · 3 comments

Comments

@Nazariglez
Copy link
Owner

Entity must be clipped with masks or rect but using the entity matrix.

@Nazariglez
Copy link
Owner Author

I'm don't know how to do this, maybe using a shader or GL_alpha? But directx will be compatible? Maybe render to texture and draw later?

@sh-dave
Copy link

sh-dave commented Apr 25, 2018

For simple rect clipping you can use g2 scissoring. For more advanced uses check out the stencil buffer. I have an old example here, not sure it still compiles but it should give you an idea.

Hope that helps a bit.

@Nazariglez
Copy link
Owner Author

Hi @sh-dave, sorry i'm late, i see this now, By "real clipping" i mean something like masking at entity level, g2 scissoring + texture render can help, but i'm looking for something more lightweight, i will check your example, thanks!!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants