Download

[Feature Request] Allow Custom stencil RT access

Hi.
It would be nice and very helpful if it was possible easily to access custom stencil RT which we currently can get inside material editor via SceneTexture::CustomStencil. The typical use case is to render stencil to a texture RT ,then sample those on mouse coordinate location and query for stencil value based ID ( pixel perfect picking ). Currently, there is no such an option on the user level API. For example, it could be provided as an additional capture type in
USceneCaptureComponent2D. Now I have to use the Compositing plugin, set transform pass and special material to blit the stencil data into RT, which is kind of overcomplicating it all given that the stencil RT is available by default.
Thanks!