add uv_scale values at TrousCreateInfo
This commit is contained in:
parent
71407aecad
commit
187f95b00f
@ -159,6 +159,8 @@ namespace hgl
|
|||||||
|
|
||||||
uint numberSlices,
|
uint numberSlices,
|
||||||
numberStacks;
|
numberStacks;
|
||||||
|
|
||||||
|
Vector2f uv_scale={1.0,1.0};
|
||||||
};//struct TorusCreateInfo
|
};//struct TorusCreateInfo
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -703,8 +703,8 @@ namespace hgl
|
|||||||
if(tcp)
|
if(tcp)
|
||||||
{
|
{
|
||||||
// generate texture coordinates and stores it in the right position
|
// generate texture coordinates and stores it in the right position
|
||||||
*tcp = s; ++tcp;
|
*tcp = s*tci->uv_scale.x; ++tcp;
|
||||||
*tcp = t; ++tcp;
|
*tcp = t*tci->uv_scale.y; ++tcp;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(tp)
|
if(tp)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user