How to use a triangle mesh in vertexShader of ShaderEffect?



  • In QML, the ShaderEffect has a property "mesh" which defines the vertexes processed by its vertexShader. I noticed some examples of setting this mesh to GridMesh, but could not find any examples or info of using a triangle mesh.

    Could anyone give me some recommendation/guidance or examples? Thank you in advance!



  • More specifically, I need to warp an image using a pair of triangle meshes. The vertexes in these two triangle meshes have been paired (one to one correspondence). I would like just to set the vertex correspondence in the vertexShader code.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.