hecomi / uDesktopDuplication

Desktop Duplication API implementation for Unity (only for Windows 8/10)
http://tips.hecomi.com/entry/2016/12/04/125641
MIT License
557 stars 97 forks source link

Captured Screen appears dark #22

Closed ciaran-worcester closed 5 years ago

ciaran-worcester commented 6 years ago

I have been using this successfully for a number of months, but since updating to a newer version of unity I am having an issue where the captured screen appears dark and almost unreadble, any suggestions for where I might be going wrong would be greatly appreciated. Thanks dark capture

hecomi commented 5 years ago

Thanks for your report. I found that it has been caused since Unity 2018.1 and it was related to LinearToGammaSpace(), but couldn't find what change caused the problem. So I added a variant to make it disabled after Unity 2018.1 as a workaround.