Quantcast ESOUI - View Single Post - Circle texture
Thread: Circle texture
View Single Post
03/29/17, 02:39 PM   #4
Shinni
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 94
Originally Posted by votan View Post
I'm not sure, but I think you can bend the edges of a texture control with :SetVertexUV(*[VERTEX_POINTS|#VERTEX_POINTS]* _vertex_, *number* _u_, *number* _v_)
I think you mean SetVertexColors(number vertexPoints, number red, number green, number blue, number alpha)

However, textures are rendered as 2 triangles, so setting the alpha of all corners to 0 will make the entire texture disappear.

It's possible to combine the two methods to render one image via multiple texture controls and blend individual parts of the image (see TrueExploration addon), but this can only approximate a circle.


edit:
Here is an example. There are gradients, but they are rather linear and the diagonals only work in one direction. Circles will be hard to apprximate.

Last edited by Shinni : 03/29/17 at 02:42 PM.
  Reply With Quote