Ejemplo n.º 1
0
        protected override int BeginQuads()
        {
            SgtHelper.BeginRandomSeed(Seed);

            if (StarColors == null)
            {
                StarColors = SgtHelper.CreateGradient(Color.white);
            }

            return(StarCount);
        }
        protected override int BeginQuads()
        {
            SgtHelper.BeginRandomSeed(Seed);

            if (StarColors == null)
            {
                StarColors = SgtHelper.CreateGradient(Color.white);
            }

            armStep   = 360.0f * SgtHelper.Reciprocal(ArmCount);
            twistStep = 360.0f * Twist;

            return(StarCount);
        }
Ejemplo n.º 3
0
        protected override int BeginQuads()
        {
            SgtHelper.BeginRandomSeed(seed);

            if (starColors == null)
            {
                starColors = SgtHelper.CreateGradient(Color.white);
            }

            sourceTex2D = sourceTex as Texture2D;

            if (sourceTex2D != null && samples > 0)
            {
#if UNITY_EDITOR
                SgtHelper.MakeTextureReadable(sourceTex2D);
                SgtHelper.MakeTextureTruecolor(sourceTex2D);
#endif
                halfSize = size * 0.5f;

                return(starCount);
            }

            return(0);
        }