harrand / Topaz

C++20 Game Engine
https://harrand.github.io/Topaz/
MIT License
35 stars 3 forks source link

Feature Request: Floating point formats #67

Closed harrand closed 1 year ago

harrand commented 1 year ago

Describe the feature request Add some floating-point formats to tz::gl::ImageFormat.

possible example(s): RGBA64_SFloat (a four component, 64 bit signed floating point format)

Justification This will enable HDR to be used. This is used everywhere

Additional context tz::gl::ImageFormat does not contain any floating point formats. This means that image pixel values are always clamped, making HDR impossible. Having some HDR available allows games to do some nice tonemapping for much better lighting effects.

harrand commented 1 year ago

RGBA128_SFloat has been added at 0195f13e000eaaf0af69f5c23ec371187f9de89c

I'll leave this open for now because only 1 format is not ideal

harrand commented 1 year ago

Considered complete as of c2006e20f4db5e1e4907b0ea045768027bf1d02f