Ejemplo n.º 1
0
    private int GetDynamicLod(int lod, bool isParticle)
    {
        if (!this.m_dynamicLOD || !isParticle || lod == 2 || this.LIMIT_CONFIG == null || lod >= this.LIMIT_CONFIG.Length || lod < 0)
        {
            return(lod);
        }
        int particleActiveNumber = ParticleHelper.GetParticleActiveNumber();

        if (particleActiveNumber >= this.LIMIT_CONFIG[lod])
        {
            return(2);
        }
        return(lod);
    }
Ejemplo n.º 2
0
    private int GetDynamicLod(int lod, bool isParticle)
    {
        if ((!this.m_dynamicLOD || !isParticle) || (lod == 2))
        {
            return(lod);
        }
        int particleActiveNumber = ParticleHelper.GetParticleActiveNumber();

        if (particleActiveNumber >= this.LIMIT_CONFIG[lod][1])
        {
            return(2);
        }
        if (particleActiveNumber >= this.LIMIT_CONFIG[lod][0])
        {
            return(1);
        }
        return(0);
    }
Ejemplo n.º 3
0
    private int GetDynamicLod(int lod, bool isParticle)
    {
        if (((!this.m_dynamicLOD || !isParticle) || ((lod == 2) || (this.LIMIT_CONFIG == null))) || ((lod >= this.LIMIT_CONFIG.Length) || (lod < 0)))
        {
            return(lod);
        }
        int[] numArray = this.LIMIT_CONFIG[lod];
        if (numArray == null)
        {
            return(lod);
        }
        int particleActiveNumber = ParticleHelper.GetParticleActiveNumber();

        if (particleActiveNumber >= numArray[1])
        {
            return(2);
        }
        if (particleActiveNumber >= numArray[0])
        {
            return(1);
        }
        return(0);
    }