Open codeanticode opened 5 years ago
If I understand correctly, if the texFactor
is moved into the W component of position
and the vec2 texScale
is changed to use a mat4 texMatrix
instead, it will be compatible with the existing PShader API, right? If so, that's a lot less change than I expected.
Yes, that's right. Planning to look closer into it after releasing version 4.1 of the mode.
The P2DX renderer by @hazmatsuitor improves 2D rendering performance significantly, as discussed in #265.
This experimental renderer has its own vertex data structures and shaders uniforms/attributes that allow memory transfer speedups, but on the other hand makes it harder to integrate with standard Processing's shaders. Work needs to be done to make that integration possible, or at least to document the caveats associated with the use of P2DX: