UnityEditor.ReflectionProbeEditor.GetProbeIntensity C# (CSharp) Method

GetProbeIntensity() private method

private GetProbeIntensity ( ReflectionProbe p ) : float
p UnityEngine.ReflectionProbe
return float
        private float GetProbeIntensity(ReflectionProbe p)
        {
            if ((p == null) || (p.texture == null))
            {
                return 1f;
            }
            float intensity = p.intensity;
            if (TextureUtil.GetTextureColorSpaceString(p.texture) == "Linear")
            {
                intensity = Mathf.LinearToGammaSpace(intensity);
            }
            return intensity;
        }