mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
catching end of texture
This commit is contained in:
parent
3379291b05
commit
b44193c2ad
1 changed files with 5 additions and 1 deletions
|
@ -101,9 +101,13 @@ void RenderablePolyLineEntityItem::updateGeometry() {
|
|||
|
||||
//head
|
||||
if( i > startHeadIndex) {
|
||||
uCoord = float(i - startHeadIndex)/numHeadStrips * headLength + headStart;
|
||||
uCoord = float( (i+ 1) - startHeadIndex)/numHeadStrips * headLength + headStart;
|
||||
qDebug()<< "ucoord:" << uCoord;
|
||||
}
|
||||
//make sure we map to the end of texture;
|
||||
// if (i == _normals.size() -1) {
|
||||
// uCoord = 1;
|
||||
// }
|
||||
uv = vec2(uCoord, vCoord);
|
||||
|
||||
_verticesBuffer->append(sizeof(glm::vec3), (const gpu::Byte*)&_vertices.at(vertexIndex));
|
||||
|
|
Loading…
Reference in a new issue