Hello, I’m creating a custom material to render to an MRT in which there is two textures and I’m creating a material that renders to the first (the main one, the other is for effects on post process).
the thing is I wanna put some lights and shadows on my custom shader as explained here:
And it breaks:
Of course my assumption is that I used 300es and obviously the imports are 100es style or something but the 300es is the only way I’ve found of targetting the first texture in the MRT, I’m not even sure it would be supported in 100es.
Is there a way to fix that?
Note: I passed the colors as uniforms through setVertex3 but it crashes so I hardcoded them in the shader.
It works well on my app but not on the PG, weird.