From 5ad0c8c9cfb9c5f132ce6fcbd76cf89ad6199873 Mon Sep 17 00:00:00 2001 From: jsjgameer <411963337@qq.com> Date: Fri, 26 Apr 2024 18:47:56 +0800 Subject: [PATCH] fix: fixed the curveData format --- .../laya/d3/core/particleShuriKen/ShurikenParticleSystem.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layaAir/laya/d3/core/particleShuriKen/ShurikenParticleSystem.ts b/src/layaAir/laya/d3/core/particleShuriKen/ShurikenParticleSystem.ts index 4244873c3a..1f7a49d350 100644 --- a/src/layaAir/laya/d3/core/particleShuriKen/ShurikenParticleSystem.ts +++ b/src/layaAir/laya/d3/core/particleShuriKen/ShurikenParticleSystem.ts @@ -761,8 +761,8 @@ export class ShurikenParticleSystem extends GeometryElement implements IClone { } else { shaDat.addDefine(ShuriKenParticle3DShaderDeclaration.SHADERDEFINE_SIZEOVERLIFETIMERANDOMCURVES); - size.gradient._formatData(); size.gradientMin._formatData(); + size.gradientMax._formatData(); shaDat.setBuffer(ShuriKenParticle3DShaderDeclaration.SOLSIZEGRADIENT, size.gradientMin._elements); shaDat.setBuffer(ShuriKenParticle3DShaderDeclaration.SOLSizeGradientMax, size.gradientMax._elements); }