-
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
Showing
4 changed files
with
25 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using UnityEngine.Pixyz.API; | ||
using UnityEngine.Pixyz.Scene; | ||
|
||
namespace DCL_PiXYZ | ||
{ | ||
public class PXZRemoveHiddenPartOccurrences : IPXZModifier | ||
{ | ||
public void ApplyModification(PiXYZAPI pxz) | ||
{ | ||
pxz.Core.SetModuleProperty("Algo", "DisableGPUAlgorithms", "True"); | ||
//We use low quality settings, since this modifier is used only for far away lods. | ||
//For more info, check https://www.pixyz-software.com/documentations/html/2024.2/sdk/manual/functions/deleteoccluded.html?q=Occluded | ||
OccurrenceList hiddenOccurrences = pxz.Algo.FindOccludedPartOccurrences(new OccurrenceList(new uint[] | ||
{ | ||
pxz.Scene.GetRoot() | ||
}), 256, 2, 30, true); | ||
pxz.Scene.DeleteOccurrences(hiddenOccurrences); | ||
} | ||
} | ||
} |
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