UNPKG

596 BJavaScriptView Raw
1/**
2 * @see https://doc.babylonjs.com/how_to/optimizing_your_scene#changing-mesh-culling-strategy
3 */
4export var Strategy;
5
6(function (Strategy) {
7 Strategy[Strategy["Standard"] = 0] = "Standard";
8})(Strategy || (Strategy = {}));
9
10var Cullable =
11/** @class */
12function () {
13 function Cullable() {
14 this.strategy = Strategy.Standard;
15 this.visibilityPlaneMask = -1;
16 this.visible = true;
17 this.enable = true;
18 }
19
20 Cullable.prototype.isCulled = function () {
21 return this.enable && !this.visible;
22 };
23
24 Cullable.tag = 'c-cullable';
25 return Cullable;
26}();
27
28export { Cullable };
\No newline at end of file