|
@@ -120,8 +120,8 @@ class GPUEmitterObject extends h3d.scene.MeshBatch {
|
|
|
var p = dataPasses;
|
|
|
var particleBufferFormat = hxd.BufferFormat.make([
|
|
|
{ name : "speed", type : DVec3 },
|
|
|
- { name : "lifeTime", type : DFloat }]
|
|
|
- );
|
|
|
+ { name : "lifeTime", type : DFloat },
|
|
|
+ ]);
|
|
|
while ( p != null ) {
|
|
|
if ( particleBuffer.buffer == null )
|
|
|
particleBuffer.buffer = alloc.allocBuffer(instanceCount, particleBufferFormat, UniformReadWrite);
|