Page 1 of 1

Re: Equally textured line

Posted: Fri Apr 20, 2018 1:56 pm
by paroj
you need to adapt your UV computation s.t. the coordinates reflect the point distance d: e.g. run the coordinate [0..d] instead of [0..1].
Also see http://www.opengl-tutorial.org/beginner ... ured-cube/ and https://ogrecave.github.io/ogre/api/1.1 ... s_005fmode

Re: Equally textured line

Posted: Fri Apr 20, 2018 4:15 pm
by paroj
yes, your assumptions are correct. Regarding TEX_TYPE_2D: technically a Nx1 texture is still a 2d texture, altough all values for v will map to the same y-pixel.