Skip to content

Stencil Buffer: Advanced Managing by WebGLRenderer #7952

Closed
@Mugen87

Description

@Mugen87
Collaborator

After providing a basic stencil buffer API in WebGLState(see #7816), i tried to implement an automatic management of the stencil test (see #7836). The WebGLRenderer should change the WebGL state by two additional material properties stencilWrite and stencilTest. The benefit of this is a more consistent management of the internal WebGL state.

Unfortunately, the masking mechanism of three.js's post processing was incompatible with this approach, because the library, or more specifically the MaskPass, manages directly the stencil test via native WebGL API. I tried to fix this (see #7866), but i wasn't able to develop a satisfying solution.

I've opened primarily this issue as a reminder. But we can also discuss here all suggestions to this topic.

Activity

added a commit that references this issue on Jan 22, 2016

mrdoob#7952 New Stencil Buffer Management

added a commit that references this issue on Jan 24, 2016
added a commit that references this issue on Jan 28, 2016

Revert "mrdoob#7952 New Stencil Buffer Management"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @mrdoob@Mugen87

        Issue actions

          Stencil Buffer: Advanced Managing by WebGLRenderer · Issue #7952 · mrdoob/three.js