-
-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UPBGE: Implement node dirty flag for multiple users.
Previously only one flag noticed that the object node trasform changed, using only one flag is limiting for futur work as occlusion were we would like to rebuild a BVH tree if a node changed. To avoid this limitation we use a bitmask where a value of 0 mean not dirty and a value of 1 dirty. The bitmask is compared through the functions SG_Node::IsDirty(flag) and cleared thanks to SG_Node::ClearDirty. The current users are DIRTY_RENDER and DIRTY_CULLING.
- Loading branch information
1 parent
0d4ca63
commit 2b06fad
Showing
4 changed files
with
21 additions
and
13 deletions.
There are no files selected for viewing
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
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