'Normals' for models are broken

Moderator: GZDoom Developers

Forum rules
Please construct and post a simple demo whenever possible for all bug reports. Please provide links to everything.

If you can include a wad demonstrating the problem, please do so. Bug reports that include fully-constructed demos have a much better chance of being investigated in a timely manner than those that don't.

Please make a new topic for every bug. Don't combine multiple bugs into a single topic. Thanks!
emile_b
Posts: 105
Joined: Sun Sep 22, 2019 7:06 am
Graphics Processor: nVidia (Modern GZDoom)

'Normals' for models are broken

Post by emile_b »

The normal vertex data is of type 'GL_INT_2_10_10_10_REV' which does not exist for GLES2, but does exists in GLES3

https://github.com/coelckers/gzdoom/blo ... s.cpp#L278

Probably best to just revert it back to GL_INT_2_10_10_10_REV then it will work on desktop and GLES3 devices.

Alternative is to modify the data to work with these types:
GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_FIXED, or GL_FLOAT

Return to “OpenGLES Renderer Bugs”