コード例 #1
0
        public void UpdateSwitchList()
        {
            if (inputBiome != null)
            {
                currentSampler = inputBiome.GetSampler(samplerName);
            }

            UpdateRelativeBounds();

            switchList.UpdateMinMax(relativeMin, relativeMax);
            switchList.UpdateSampler(samplerName, currentSampler);
        }
コード例 #2
0
        void ReloadCallback(PWNode from)
        {
            //load the new sampler if there it was modified
            if (inputBiome != null)
            {
                currentSampler = inputBiome.GetSampler(samplerName);
            }

            UpdateRelativeBounds();

            switchList.UpdateMinMax(relativeMin, relativeMax);
            switchList.UpdateSampler(samplerName, currentSampler);
            switchList.UpdateBiomeRepartitionPreview(inputBiome);
        }