PistonDevelopers / glutin_window

A Piston window back-end using the Glutin library
MIT License
25 stars 40 forks source link

All colors darkened after updating to 0.71.0 #209

Open juniperparsnips opened 1 year ago

juniperparsnips commented 1 year ago

I manually created a grayscale gradient from black to white using the following code. Using version 0.70.1 it appeared as expected, however after updating to 0.71.0 it appeared as a quadratic gradient. The same effect also occurs when using full color and images.

Using 0.70.1 ![linear-greyscale-0-70-1](https://user-images.githubusercontent.com/44325548/232173270-75912f57-0de0-4bf1-b218-ba65bec79639.png)
Using 0.71.0 ![linear-greyscale-0-71-0](https://user-images.githubusercontent.com/44325548/232172513-c09d7213-3280-492d-bf82-052aa5d50bd2.png)

I've uploaded the source code I used to generate these images here

In my troubleshooting so far, this effect is almost exactly an image editing "Multiply" effect, and values of each box are essentially the brightness squared.

Two layers of the above 0.70.1 image merged with photoshop's multiply effect ![70-1--multiply--70-1](https://user-images.githubusercontent.com/44325548/232173723-cd020edd-43b2-4531-a72e-2d5d0eed1f3a.png)
Output vs. Input brightness ![brightness effect](https://user-images.githubusercontent.com/44325548/232174089-e2ecdd95-80e6-4e98-a3c3-5cd17a316c8d.png)