|
|
|
|
|
|
var probeFormat = TextureFormat.BC6H; |
|
|
|
|
|
|
|
// On editor the texture is uncompressed when operating against mobile build targets
|
|
|
|
#if UNITY_2017_2_OR_NEWER
|
|
|
|
if (SystemInfo.SupportsTextureFormat(probeFormat) && !UnityEngine.Rendering.GraphicsSettings.HasShaderDefine(UnityEngine.Rendering.BuiltinShaderDefine.UNITY_NO_DXT5nm)) |
|
|
|
format = probeFormat; |
|
|
|
#else
|
|
|
|
#endif
|
|
|
|
|
|
|
|
return format; |
|
|
|
} |
|
|
|
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
#if UNITY_2017_2_OR_NEWER
|
|
|
|
return !UnityEngine.Rendering.GraphicsSettings.HasShaderDefine(UnityEngine.Rendering.BuiltinShaderDefine.UNITY_NO_CUBEMAP_ARRAY); |
|
|
|
#else
|
|
|
|
#endif
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|