Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Self intersections #1

Merged
merged 3 commits into from Dec 31, 2019
Merged

Self intersections #1

merged 3 commits into from Dec 31, 2019

Conversation

@endavid
Copy link
Owner

endavid commented Dec 31, 2019

Added a new plugin that uses the stencil buffer to render the volume intersections on a mesh.

Example

Intersection-example

Cases

volume-intersection-cases

Stencil buffer setup

Pass Func Ref Read Mask Write Mask Fail? Z-fail? Pass? Z-write
Back ALWAYS 0 0 0xf~f KEEP INCR INCR ON
Front ALWAYS 0 0 0xf~f KEEP DECR KEEP OFF
Front - intersection LESS 0x1 0xf~f 0xf~f KEEP KEEP KEEP ON
Front - light GEQUAL 0x1 0xf~f 0xf~f KEEP KEEP KEEP ON

Last pass is optional.

@endavid endavid merged commit c1e4bf0 into master Dec 31, 2019
@endavid endavid deleted the self-intersections branch Dec 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.