コード例 #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;
        }
コード例 #2
0
ファイル: FractalPlanet.cs プロジェクト: GreggBzz/Outerspace
        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;
        }