-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dd843f7
commit 53d44ca
Showing
6 changed files
with
766 additions
and
22 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import { Vector3 } from "../../../../Core/Types/Geometry/Vector3"; | ||
|
||
export type Chunk = { | ||
position : Vector3 ; | ||
size : number ; | ||
data : Array<number> ; | ||
dataSize : number ; | ||
rcData : Array<number> ; | ||
rcDataSize : number ; | ||
hasRc : boolean ; | ||
position : Vector3 ; // 3D position in the world | ||
size : number ; // Size of the chunk, default will be 32 | ||
data : Array<number> ; // The original data | ||
dataSize : number ; // The number of non empty blocks | ||
rcData : Array<number> ; // An optimized version of visible only visible data | ||
rcDataSize : number ; // The number of visible blocks | ||
hasRc : boolean ; // Define if a chunk has been optimized or not | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters