gl_FragData #4421
-
If I try to use gl_FragData in a shader I get this compilation error: I'm trying to bind a render target with 2 color attachments and write in the second one some custom data (a render ID per object) I couldn't find any sample, issue or discussion about this so I'm inclined to thing that it's not supported, but on the other hand the RenderTarget does support multiple color attachments. This is the line: //Edit - tried to get the formatting of the error fixed |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
We currently do not (entirely) support MRT on the user side. We use them internally but we haven't exposed the APIs just yet. Note that when we do, it won't use |
Beta Was this translation helpful? Give feedback.
We currently do not (entirely) support MRT on the user side. We use them internally but we haven't exposed the APIs just yet. Note that when we do, it won't use
gl_FragData
, instead the materials declare multiple named outputs as expected in a modern GL setting.