is it possible to a SNORM texture in OpenGL 4.4? Apparently they are not a required format for color targets in 4.2.
I want to render to a RG16_SNORM target to store normals in octahedron format. The linked paper contains code that expects and outputs data in the [-1, 1] range and I was just assuming that it would automatically work with SNORM textures.
The output seems to get clamped to [0, 1] though. It checked with a floating point render target and got the expected results so I don't think it is an issue with the code.
Should this work? Am I maybe doing something wrong when creating the texture?
D3D11 hardware supports SNORM render targets, so I guess I'm doing something wrong.
Edited by B_old, 29 May 2014 - 07:51 AM.