ExampleGallery.BurningTextExample.ConfigureEffect C# (CSharp) Méthode

ConfigureEffect() private méthode

private ConfigureEffect ( float totalTimeSeconds ) : void
totalTimeSeconds float
Résultat void
        private void ConfigureEffect(float totalTimeSeconds)
        {
            // Animate the flame by shifting the Perlin noise upwards (-Y) over time.
            flameAnimation.TransformMatrix = Matrix3x2.CreateTranslation(0, -totalTimeSeconds * 60.0f);

            // Scale the flame effect 2x vertically, aligned so it starts above the text.
            float verticalOffset = /*fontSize*/ 20 * 1.4f;

            var centerPoint = new Vector2(0, verticalOffset);

            flamePosition.TransformMatrix = Matrix3x2.CreateScale(1, 2, centerPoint);
        }