This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// fog設定 カラーとフォグの濃さ | |
scene.fog = new THREE.FogExp2( 0xEEEEEE, 0.001 ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// パーティクルの数 | |
particleCount = 5000; | |
particles = new THREE.Geometry(); | |
// テクスチャの設定 | |
texture = THREE.ImageUtils.loadTexture("images/particles.png") | |
// マテリアルの設定 | |
material = new THREE.PointCloudMaterial({ | |
color: 0xFFFFFF, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() { |