static Texture GetTexture(HDReflectionProbeEditor e, Object target)
        {
            HDProbe additional = e.GetTarget(target);

            if (additional != null && additional.mode == UnityEngine.Rendering.ReflectionProbeMode.Realtime)
            {
                return(additional.realtimeTexture);
            }
            else
            {
                var p = target as ReflectionProbe;
                if (p != null)
                {
                    return(p.texture);
                }
            }
            return(null);
        }
Exemplo n.º 2
0
        static Texture GetTexture(HDReflectionProbeEditor e, Object target)
        {
            HDProbe probe = e.GetTarget(target);

            return(probe.texture);
        }