virtualx-engine/drivers
lawnjelly 674327b78f GLES3 fix normal map flipping with nvidia workaround
When not using TEXTURE_RECT path, flips have to sent via another method to the shader, to ensure that normal maps are correctly adjusted for direction. This PR adds an extra vertex attribute, LIGHT_ANGLE.

For nvidia workarounds, where the shader still has access to the final transform and extra matrix, the LIGHT_ANGLE can be 0 (no adjustment), 180 degrees for a horizontal flip, and negative indicates a vertical flip.

For batching path, the LIGHT_ANGLE can be used to directly specify the light angle for normal mapping, even when the final transform and extra matrix have been baked into vertex positions, so the same shader can be used for both.
2020-08-23 07:54:58 +01:00
..
alsa SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
alsamidi SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
coreaudio SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
coremidi SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
dummy Fix memory leaks in RasterizerStorageDummy::free 2020-06-25 12:22:00 -07:00
gl_context SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
gles2 GLES2 batching - Fix redundant transform synchronization in batches 2020-08-18 08:37:07 +01:00
gles3 GLES3 fix normal map flipping with nvidia workaround 2020-08-23 07:54:58 +01:00
png Handle 16 bit PNG files in sRGB format 2020-07-10 08:51:21 +02:00
pulseaudio SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
unix [macOS] Fix crash on failed fork. 2020-08-14 00:32:04 +02:00
wasapi SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
windows Revert "Fix Directory Open Check" 2020-07-28 13:54:13 -04:00
winmidi SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
xaudio2 SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
register_driver_types.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
register_driver_types.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
SCsub SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00