Пример #1
0
        private void UpdateColorMapping(int keyIndex)
        {
            ColorMappingParams value = Engine.GetColorMapping(keyIndex);

            //nslColorMappingInfluence.Value = (decimal)value.Influence;
            tbColorMappingTexture.Text = value.Texture;
        }
Пример #2
0
        public ColorMappingParams GetColorMapping(int keyIndex)
        {
            ColorMappingParams result = default(ColorMappingParams);

            using (PostProcessParamBase param = _animator.GetParam(PostProcessParamType.ColorMappingInfluence))
            {
                float time = param.GetKeyTime(keyIndex);

                SafetyGetValue(param, time, ref result.Influence, 0);
            }
            result.Texture = _animator.PPInfo.ColorMappingGradient1;
            return(result);
        }