浏览代码

GPUEmitter.hx lifeTime as DFloat

clementlandrin 10 月之前
父节点
当前提交
b0c37acdf5
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 )