mirror of
https://github.com/overte-org/overte.git
synced 2025-04-24 05:53:29 +02:00
back to normal
This commit is contained in:
parent
81e0266e7e
commit
cd9dff57be
1 changed files with 0 additions and 4 deletions
|
@ -78,10 +78,6 @@ int frustumGrid_clusterToIndex(ivec3 pos) {
|
|||
return pos.x + (pos.y + pos.z * frustumGrid.dims.y) * frustumGrid.dims.x;
|
||||
}
|
||||
ivec3 frustumGrid_indexToCluster(int index) {
|
||||
if (index <= 0) {
|
||||
return ivec3(0, 0, -1);
|
||||
}
|
||||
index -= 1;
|
||||
ivec3 summedDims = ivec3(frustumGrid.dims.x * frustumGrid.dims.y, frustumGrid.dims.x, 1);
|
||||
int layer = index / summedDims.x;
|
||||
int offsetInLayer = index % summedDims.x;
|
||||
|
|
Loading…
Reference in a new issue