Home › Forums › PowerVR Insider Graphics › Is gl_FragData supported on any SGXs
This topic contains 1 reply, has 2 voices, and was last updated by marco 5 years, 8 months ago.
I saw Gordon’s reply to this post: https://www.imgtec.com/forum/forum_posts.asp?TID=449&KW=gl%5FFragData&PID=2466#2466, (that the stencil buffer cannot be used for arbitrary values) but it’s not clear if the stencil buffer can be used straight-up from a fragment shader via gl_FragData (to read/write reference values that you’d otherwise send through glStencilFunc). Anyone know?
there is no facility in OGLES2 to read or write stencil values in the fragment shader.