I am working on some postprocessing. Everything works perfectly fine except rendering the ScrollView with RenderTexture. I am getting the “green” result - ScrollView is rendered as a green rectangle.
I have already tried glContextAttrs {8, 8, 8, 8, 24, 8}, but without any success.
Unfortunately I have discovered another issue. Setting clipping type to SCISSOR solves “green” issue, but it causes another one It looks like the visible part of the scroll view is “moved” by some offset.
Here are all the cases (checked on Android and Windows):
When I resize the window in Windows 10 (SHOW_ALL policy), the scene is scaled and the inner container of the ScrollView is moving. It doesn’t happen when STENCIL clipping type is set.
Hmm… I checked the RenderTexture again. When I pass GL_DEPTH24_STENCIL8 as a parameter to RenderTexture everything seems to work with STENCIL clipping. Unfortunately I have no idea why SCISSOR doesn’t work
The current solution seems to be creating render texture with GL_DEPTH24_STENCIL8.
I am also facing the same issue.
If I choose, SCISSOR as my clipping type to avoid the white and green textures in STENCIL
then, the clipping node size is not correct, it shows only a part of the scrollview.
as if the width and the height for the clipping node is not calculated correctly.
Did you find any fix for this in the SCISSOR mode !!