Skip to content

DXT5 RGBM encoding support #361

Open

Description

As a way to save memory with lightmaps, a variant of DXT5/BC3 uses RGBM instead of RGBA to encode HDR content.

http://www.ludicon.com/castano/blog/2016/09/lightmap-compression-in-the-witness/

In a shader it would be reconstructed as:

float4 data = Texture.Sample(sampler, uv);
data.rgb = data.rgb * data.a * 5.0;
data.a = 1.0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions