コード例 #1
0
        public static void UpdateTwoLods(List <MyLodStrategyCachedResult> results, int passId, int currentLod,
                                         MyInstanceLodState currentState, float currentStateData, int theOtherLod, MyInstanceLodState theOtherState, float theOtherStateData)
        {
            MyLodStrategyCachedResult result = new MyLodStrategyCachedResult();

            result.Set(2, currentLod, currentState, currentStateData);
            results[passId * 2] = result;
            result.Set(2, theOtherLod, theOtherState, theOtherStateData);
            results[passId * 2 + 1] = result;
        }
コード例 #2
0
        public static void UpdateSingleLod(List <MyLodStrategyCachedResult> results, int passId, int currentLod,
                                           MyInstanceLodState currentState, float currentStateData)
        {
            MyLodStrategyCachedResult result = new MyLodStrategyCachedResult();

            result.Set(1, currentLod, currentState, currentStateData);
            results[passId * 2] = result;
        }