Ejemplo n.º 1
0
        public FractalPlanet(int iceCapRange, int displaceMag, Single planetscaler, int roughness,
                             Single seed, string txrMap)
        {
            startSphere = new Geosphere(planetscaler, seed, roughness, displaceMag, iceCapRange);
            land        = false;
            LoadTexture(txrMap);
            CreateVertexBuffer();
            x              = 0;
            y              = 0;
            z              = 0;
            fRotYAngle     = (float)(rnd.NextDouble() / Convert.ToSingle(Environment.TickCount));
            fCloudRotAngle = (float)(rnd.NextDouble() / Convert.ToSingle(Environment.TickCount));

            iBlend = 1;
            jBlend = 0;
        }
Ejemplo n.º 2
0
        public FractalPlanet(int iceCapRange, int displaceMag, Single planetscaler, int roughness,
            Single seed, string txrMap)
        {
            startSphere = new Geosphere(planetscaler, seed, roughness, displaceMag, iceCapRange);
            land = false;
            LoadTexture(txrMap);
            CreateVertexBuffer();
            x = 0;
            y = 0;
            z = 0;
            fRotYAngle = (float)(rnd.NextDouble() / Convert.ToSingle(Environment.TickCount));
            fCloudRotAngle = (float)(rnd.NextDouble() / Convert.ToSingle(Environment.TickCount));

            iBlend = 1;
            jBlend = 0;
        }