Fix longstanding rent in skydome under ALS.
This commit is contained in:
parent
91b92c5613
commit
5a5ba08c23
@ -139,7 +139,7 @@ void SGSkyDome::makeDome(int rings, int bands, DrawElementsUShort& elements)
|
|||||||
= std::back_inserter(elements);
|
= std::back_inserter(elements);
|
||||||
GridIndex grid(*dome_vl, numBands, 1);
|
GridIndex grid(*dome_vl, numBands, 1);
|
||||||
for (int i = 0; i < bands; i++) {
|
for (int i = 0; i < bands; i++) {
|
||||||
*pusher = 0; *pusher = grid(0, i+1); *pusher = grid(0, i);
|
*pusher = 0; *pusher = grid(0, (i+1)%bands); *pusher = grid(0, i);
|
||||||
// down a band
|
// down a band
|
||||||
for (int j = 0; j < rings - 1; ++j) {
|
for (int j = 0; j < rings - 1; ++j) {
|
||||||
*pusher = grid(j, i); *pusher = grid(j, (i + 1)%bands);
|
*pusher = grid(j, i); *pusher = grid(j, (i + 1)%bands);
|
||||||
|
Loading…
Reference in New Issue
Block a user