I’ve noticed that for custom post effects we have only 4 vertices, which makes sense, but it’s limited.
I achieved the effect I need by using Fragment shaders, but it’s a waste or resources and the phone gets hot, which forces Chrome to shut down after a while…
Is there any way to increase the number of vertices?
That’s interesting, I never thought using more vertices on a post effect. The primitive for the screen quad is definite here, without patching the engine I am not sure you can change it:
As example, have you seen a wave effect? I saw an example here, I don’t recall the URL, but basically, it was a fragment shader. 2M operations each frame when a vertex shader could do a few dozens/hundreds only.