Commit bbc79c73 authored by iSergio's avatar iSergio
Browse files

Added ModelExperimental, a new experimental architecture for loading glTF...

Added ModelExperimental, a new experimental architecture for loading glTF models. It is disabled by default; set Cesium.ExperimentalFeatures.enableModelExperimental = true to enable it.
parent 6d27c70b
Loading
Loading
Loading
Loading
+28 −0
Original line number Diff line number Diff line
@@ -474,4 +474,32 @@ public class Cesium {
            return options;
        }
    }

    /**
     * Flags to enable experimental features in CesiumJS. Stability and performance
     * may not be optimal when these are enabled. Experimental features are subject
     * to change without Cesium's standard deprecation policy.
     * <p>
     * Experimental features must still uphold Cesium's quality standards. Here
     * are some guidelines:
     * </p>
     * <ul>
     *   <li>Experimental features must have high unit test coverage like any other feature.</li>
     *   <li>Experimental features are intended for large features where there is benefit of merging some of the
     *   code sooner (e.g. to avoid long-running staging branches)</li>
     *   <li>Experimental flags should be short-lived. Make it clear in the PR what it would take to promote the
     *   feature to a regular feature.</li>
     *   <li>To avoid cluttering the code, check the flag in as few places as possible. Ideally this would be a single place.</li>
     * </ul>
     *
     * experimental: This feature is using part of the 3D Tiles spec that is not final and is subject to change
     * without Cesium's standard deprecation policy.
     */
    @JsType(isNative = true, namespace = "Cesium", name = "ExperimentalFeatures")
    public static class ExperimentalFeatures {
        /**
         * Toggles the usage of the ModelExperimental class.
         */
        public static boolean enableModelExperimental;
    }
}