Skip to content

Commit

Permalink
Merge pull request #1440 from jsjgameer/LayaAir_3.1
Browse files Browse the repository at this point in the history
fix: fixed the curveData format
  • Loading branch information
LayaCharley authored Apr 26, 2024
2 parents 7f51bef + b721539 commit 4140201
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 4140201

Please sign in to comment.