forked from: 球体練習
forked from 球体練習 (diff: 11)
ActionScript3 source code
/**
* Copyright plus-tic ( http://wonderfl.net/user/plus-tic )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/3IWk
*/
// forked from TFB's 球体練習
package
{
import org.papervision3d.materials.WireframeMaterial;
import org.papervision3d.objects.primitives.Sphere;
import org.papervision3d.view.*;
import org.papervision3d.objects.special.ParticleField;
import org.papervision3d.materials.special.ParticleMaterial;
public class Main extends BasicView
{
public function Main()
{
opaqueBackground = 0;//背景色
//パーティクル
var particleMat:ParticleMaterial = new ParticleMaterial(0xFFFFFF, 1);
var particles:ParticleField = new ParticleField(particleMat, 500, 4, 2000, 2000, 2000);
scene.addChild( particles );
var material:WireframeMaterial = new WireframeMaterial(0x666666);
var sphere:Sphere = new Sphere(material);
scene.addChild(sphere);
startRendering();
}
}
}
