Skip to content

Instantly share code, notes, and snippets.

// fog設定 カラーとフォグの濃さ
scene.fog = new THREE.FogExp2( 0xEEEEEE, 0.001 );
// パーティクルの数
particleCount = 5000;
particles = new THREE.Geometry();
// テクスチャの設定
texture = THREE.ImageUtils.loadTexture("images/particles.png")
// マテリアルの設定
material = new THREE.PointCloudMaterial({
color: 0xFFFFFF,
var container, stats;
var camera, scene, renderer, particles, material, particleCount, pointCloud, texture;
var xSpeed, ySpeed;
xSpeed = 0.001;
ySpeed = 0.001;
init();
animate();
function init() {