Legacy Documentation: Version 2017.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

TextureFormat.BC6H

Description

HDR compressed color texture format.

BC6H format compresses RGB HDR textures to 8 bits per pixel, and is supported on DX11-class PC hardware, as well as PS4 and XboxOne.

It is a good format for compressing floating point texture data (skyboxes, reflection probes, lightmaps, emissive textures), e.g. textures that uncompressed would be in RGBAHalf or RGBAFloat formats. Note that BC6H does not retain the alpha channel; it only stores RGB color channels.

When loading BC6H textures on a platform that does not support it, the texture will be decompressed into RGBAHalf format (64 bits per pixel) at load time. Note that BC7 is not available on Mac when using OpenGL.

See Also: Texture2D.format, texture assets.

对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答