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
Equally textured line
-
- OGRE Team Member
- Posts: 1994
- Joined: Sun Mar 30, 2014 2:51 pm
- x 1074
- Contact:
-
- OGRE Team Member
- Posts: 1994
- Joined: Sun Mar 30, 2014 2:51 pm
- x 1074
- Contact:
Re: Equally textured line
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.