Esempio n. 1
0
        public float GetBlur(int keyIndex)
        {
            float result;
            float time;

            using (xmAPI::xmPostprocessParam param = animator.GetParam(xmAPI::xmPostprocessParamType.Blur))
            {
                time = param.GetKeyTime(keyIndex);
                param.GetValue(time, out result, 0);
            }
            return(result);
        }
Esempio n. 2
0
        public ColorMappingParams GetColorMapping(int keyIndex)
        {
            ColorMappingParams result;
            float time;

            using (xmAPI::xmPostprocessParam param = animator.GetParam(xmAPI::xmPostprocessParamType.ColorMappingInfluence))
            {
                time = param.GetKeyTime(keyIndex);
                param.GetValue(time, out result.Influence, 0);
            }
            result.Texture = animator.PPInfo.ColorMappingGradient1;
            return(result);
        }
Esempio n. 3
0
        public ColorF GetBaseColor(int keyIndex)
        {
            ColorF result;
            float  time;

            using (xmAPI::xmPostprocessParam param = animator.GetParam(xmAPI::xmPostprocessParamType.BaseColor))
            {
                time     = param.GetKeyTime(keyIndex);
                result.a = 0;
                param.GetValue(time, out result.r, 0);
                param.GetValue(time, out result.g, 1);
                param.GetValue(time, out result.b, 2);
            }
            return(result);
        }
Esempio n. 4
0
        public Vector2F GetDuality(int keyIndex)
        {
            Vector2F result;
            float    time;

            using (xmAPI::xmPostprocessParam param = animator.GetParam(xmAPI::xmPostprocessParamType.DualityH))
            {
                time = param.GetKeyTime(keyIndex);
                param.GetValue(time, out result.x, 0);
            }
            using (xmAPI::xmPostprocessParam param = animator.GetParam(xmAPI::xmPostprocessParamType.DualityV))
            {
                param.GetValue(time, out result.y, 0);
            }
            return(result);
        }
Esempio n. 5
0
        public NoiseParams GetNoise(int keyIndex)
        {
            NoiseParams result;
            float       time;

            using (xmAPI::xmPostprocessParam param = animator.GetParam(xmAPI::xmPostprocessParamType.NoiseIntensity))
            {
                time = param.GetKeyTime(keyIndex);
                param.GetValue(time, out result.Intensity, 0);
            }
            using (xmAPI::xmPostprocessParam param = animator.GetParam(xmAPI::xmPostprocessParamType.NoiseGrain))
            {
                param.GetValue(time, out result.Grain, 0);
            }
            using (xmAPI::xmPostprocessParam param = animator.GetParam(xmAPI::xmPostprocessParamType.NoiseFps))
            {
                param.GetValue(time, out result.FPS, 0);
            }
            return(result);
        }