Skip to content

Commit

Permalink
Merge pull request #11858 from BabylonJS/fix-particles
Browse files Browse the repository at this point in the history
fix billboard_stretched
  • Loading branch information
deltakosh committed Jan 26, 2022
2 parents 6ee239b + 46908ca commit f390884
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/Particles/baseParticleSystem.ts
Expand Up @@ -549,11 +549,24 @@ export class BaseParticleSystem {
/** @hidden */
public _isSubEmitter = false;

/** @hidden */
public _billboardMode = Constants.PARTICLES_BILLBOARDMODE_ALL;
/**
* Gets or sets the billboard mode to use when isBillboardBased = true.
* Value can be: ParticleSystem.BILLBOARDMODE_ALL, ParticleSystem.BILLBOARDMODE_Y, ParticleSystem.BILLBOARDMODE_STRETCHED
*/
public billboardMode = Constants.PARTICLES_BILLBOARDMODE_ALL;
public get billboardMode(): number {
return this._billboardMode;
}

public set billboardMode(value: number) {
if (this._billboardMode === value) {
return;
}

this._billboardMode = value;
this._reset();
}

/** @hidden */
public _isBillboardBased = true;
Expand Down

0 comments on commit f390884

Please sign in to comment.