No announcement yet.

Write to stencil buffer but not to custom depth

  • Filter
  • Time
  • Show
Clear All
new posts

    [FEATURE REQUEST] Write to stencil buffer but not to custom depth

    Hey Epic,

    I need the option to tag meshes to be rendered in the custom stencil buffer but without also writing to the custom depth buffer (like it currently does).

    That would be very useful when you need to mask things in your scene but also use the custom depth for other effects.

    I cannot think of a reason why this is not already the case, as I understand the stencil is written at the custom depth pass but at the end of the day they are two different buffers so it should be possible to add a boolean in the static mesh settings for this (right?)

    4.10 Update! -> [Community Project] WIP Weather & Ocean Water Shader
    WIP Interactive Water Shader, WIP 2D Water Sim
    WIP FFT Ocean w/ Foam, Quad-tree Infinite Ocean LOD

    I'm also after this feature (for water masking purposes).
    George Rolfe.
    Technical Coordinator at Orbit Solutions Pty Ltd.


      Sounds like a good feature
      Dev Blog
      Twitter: @TheRealSpoonDog
      150 FREE Blueprint functions for your project


        Still actual.
        Twitter | MinimalUI UE4 Editor Theme
        Dark Themes for: Forum | AnswerHub | Everything else


          isn't that what stencil buffer value is for? 255 different masks pretty sure. 0-255, if stencil value = this do this..........