Răsfoiți Sursa

GPUEmitter.hx lifeTime as DFloat

clementlandrin 10 luni în urmă
părinte
comite
b0c37acdf5
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      hrt/prefab/fx/gpuemitter/GPUEmitter.hx

+ 1 - 1
hrt/prefab/fx/gpuemitter/GPUEmitter.hx

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