Пример #1
0
        void DrawParticles(ObiActor actor)
        {
            using (m_DrawParticlesPerfMarker.Auto())
            {
                if (!isActiveAndEnabled || !actor.isActiveAndEnabled || actor.solver == null)
                {
                    impostors.ClearMeshes();
                    return;
                }

                CreateMaterialIfNeeded();

                impostors.UpdateMeshes(actor);

                DrawParticles();
            }
        }
Пример #2
0
 public override void Refresh()
 {
     impostorDrawer.UpdateMeshes(editor.blueprint);
 }
Пример #3
0
 public ObiBlueprintRenderModeParticles(ObiActorBlueprintEditor editor) : base(editor)
 {
     impostorDrawer = new ParticleImpostorRendering();
     impostorDrawer.UpdateMeshes(editor.blueprint);
 }