public BillboardParticleRenderer() { billboardSet = new BillboardSet("", 0, true); billboardSet.SetBillboardsInWorldSpace(true); // TODO: Is this the right way to do this? RegisterParsers(); }
public BillboardSystem(SceneManager sceneManager, SceneNode worldNode, string materialName, Mogre.BillboardType type, Vector2 defaultDimension, float defaultTimeToLive) { BillboardSet = sceneManager.CreateBillboardSet(); BillboardSet.SetMaterialName(materialName); BillboardSet.SetBillboardsInWorldSpace(true); BillboardSet.BillboardType = type; worldNode.AttachObject(BillboardSet); this.DefaultDimension = defaultDimension; this.DefaultTimeToLive = defaultTimeToLive; }
//----------------------------------------------------------------------- public override void SetKeepParticlesInLocalSpace(bool keepLocal) { billboardSet.SetBillboardsInWorldSpace(!keepLocal); }