Ok, I managed to find the example of deffered lighting by @jhonny.goransson
It allowed me to correctly display them separately, I basically needed to indeed use MRT and replace gl_FragColor
with gl_FragData[0]
etc
Ok, I managed to find the example of deffered lighting by @jhonny.goransson
It allowed me to correctly display them separately, I basically needed to indeed use MRT and replace gl_FragColor
with gl_FragData[0]
etc