コード例 #1
0
        public BillboardParticleRenderer()
        {
            billboardSet = new BillboardSet("", 0, true);
            billboardSet.SetBillboardsInWorldSpace(true);

            // TODO: Is this the right way to do this?
            RegisterParsers();
        }
コード例 #2
0
 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;
 }
コード例 #3
0
 //-----------------------------------------------------------------------
 public override void SetKeepParticlesInLocalSpace(bool keepLocal)
 {
     billboardSet.SetBillboardsInWorldSpace(!keepLocal);
 }