コード例 #1
0
        public ColorF GetGrayColor(int keyIndex)
        {
            ColorF result;
            float  time;

            using (PostProcessParamBase param = animator.GetParam(PostProcessParamType.GrayColor))
            {
                time = param.GetKeyTime(keyIndex);
                param.GetValue(time, out result.r, 0);
                param.GetValue(time, out result.g, 1);
                param.GetValue(time, out result.b, 2);
            }
            using (PostProcessParamBase param = animator.GetParam(PostProcessParamType.GrayValue))
            {
                param.GetValue(time, out result.a, 0);
            }
            return(result);
        }
コード例 #2
0
        public NoiseParams GetNoise(int keyIndex)
        {
            NoiseParams result = default(NoiseParams);
            float       time;

            using (PostProcessParamBase param = _animator.GetParam(PostProcessParamType.NoiseIntensity))
            {
                time = param.GetKeyTime(keyIndex);
                SafetyGetValue(param, time, ref result.Intensity, 0);
            }
            using (PostProcessParamBase param = _animator.GetParam(PostProcessParamType.NoiseGrain))
            {
                SafetyGetValue(param, time, ref result.Grain, 0);
            }
            using (PostProcessParamBase param = _animator.GetParam(PostProcessParamType.NoiseFps))
            {
                SafetyGetValue(param, time, ref result.FPS, 0);
            }
            return(result);
        }
コード例 #3
0
        public NoiseParams GetNoise(int keyIndex)
        {
            NoiseParams result;
            float       time;

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