|
@@ -60,7 +60,9 @@ module BABYLON {
|
|
|
// build the SPS mesh : returns the mesh
|
|
|
public buildMesh(): Mesh {
|
|
|
if (this.nbParticles === 0) {
|
|
|
- return null;
|
|
|
+ var triangle = Mesh.CreateDisc("", {radius: 1, tessellation: 3}, this._scene);
|
|
|
+ this.addShape(triangle, 1);
|
|
|
+ triangle.dispose();
|
|
|
}
|
|
|
VertexData.ComputeNormals(this._positions, this._indices, this._normals);
|
|
|
var vertexData = new VertexData();
|