コード例 #1
0
ファイル: UpdaterColorOverTime.cs プロジェクト: cg123/xenko
        /// <summary>
        /// Default constructor which also registers the fields required by this updater
        /// </summary>
        public UpdaterColorOverTime()
        {
            RequiredFields.Add(ParticleFields.Color);

            var curve = new ComputeAnimationCurveColor4();
            SamplerMain.Curve = curve;
        }
コード例 #2
0
ファイル: UpdaterColorOverTime.cs プロジェクト: Aggror/Stride
        /// <summary>
        /// Default constructor which also registers the fields required by this updater
        /// </summary>
        public UpdaterColorOverTime()
        {
            RequiredFields.Add(ParticleFields.Color);

            var curve = new ComputeAnimationCurveColor4();

            SamplerMain.Curve = curve;
        }