WebGL canvas will not scale in Linear colorspace?
Hey guys,
I've been running into an issue getting the canvas to scale properly in WebGL. UI elements scale and resize perfectly, however the 3D elements in the scene do not. Gamma works correctly.
I found this post which explains the issue in more depth: https://forum.unity.com/threads/canvas-size-resolution-will-not-scale-when-using-linear-color-space.508476/
Apparently this comes down to an issue with floating point numbers, and MSAA, HDR, other AA, or any of the Post-processing V2 effects cause issues with it.
The OP there came up with two solutions (remove all of those effects...not doable), and using render textures with calls from the browser on resize to update the render texture size. This may be the path I have to go, however integrating it into my existing project with several camera changes and stuff already in place will make it a bit more difficult.
I wanted to see if anyone else has ran into this issue and found any other workarounds or fixes for it?
Posted Jan 29, 2018, 8:47 PM UTC