clouds fixed
This commit is contained in:
@@ -26,14 +26,16 @@ public:
|
||||
glm::vec4 getUVsExtended(int index, int lengthX, int lengthY)
|
||||
{
|
||||
int tileX = index % dims.x;
|
||||
int tileY = index / dims.x;
|
||||
int tileY = index / dims.x + lengthY -1 ;
|
||||
int secondTileX = lengthX % dims.x;
|
||||
std::cout << "secondTileX: " << secondTileX << "\n";
|
||||
glm::vec4 UV;
|
||||
UV.x = tileX / (float)dims.x;
|
||||
UV.y = tileY / (float)dims.y;
|
||||
UV.y = tileY / (float)dims.y ;
|
||||
UV.z = UV.x + (float)secondTileX / dims.x;
|
||||
UV.w = UV.y - (float)lengthY / dims.y;
|
||||
UV.w = UV.y - (float)1*lengthY / dims.y;
|
||||
std::cout << "uvs: " << UV.x << " " << UV.y << " " << UV.z << " " << UV.w << " "
|
||||
<< "\n";
|
||||
return UV;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user