godot/drivers
lawnjelly 5ed0fd067d Batching - use FINAL_MODULATE_ALIAS in shaders
As part of the improvements to batch more cases, batching can store final_modulate as an attribute in the vertex format rather than sending as a uniform. This allows draw calls with different final_modulate to be batched together.

However custom shader code was reading from only the final_modulate uniform, and not the attribute when it was in use. This was leading to visual errors.

This is tricky to solve, because we cannot use the same name for the attribute in the vertex and fragment shaders, because one is an attribute and one a varying, whereas a uniform is accessible anywhere. To get around this, a macro is used which can translate to the most appropriate variable depending on whether uniform or attribute or varying is required.
2021-03-11 17:07:19 +00:00
..
alsa Omit some functions in alsa wrapper 2021-02-22 21:39:22 +01:00
alsamidi Modernize Thread 2021-02-18 11:58:08 +01:00
coreaudio Modernize Mutex 2021-02-18 11:58:08 +01:00
coremidi Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
dummy Fix negative VRAM values 2021-03-09 09:51:17 +00:00
gl_context SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
gles2 Batching - use FINAL_MODULATE_ALIAS in shaders 2021-03-11 17:07:19 +00:00
gles3 Batching - use FINAL_MODULATE_ALIAS in shaders 2021-03-11 17:07:19 +00:00
gles_common Renaming rendering/2d project settings. 2021-03-01 11:38:46 +00:00
png Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
pulseaudio An update to the dylibloader for older inttypes 2021-02-20 01:25:19 +01:00
unix Restore needed null check in OS_Unix::execute() 2021-02-19 11:48:30 +01:00
wasapi Modernize Thread 2021-02-18 11:58:08 +01:00
windows Modernize Thread 2021-02-18 11:58:08 +01:00
winmidi Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
xaudio2 Modernize Thread 2021-02-18 11:58:08 +01:00
register_driver_types.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
register_driver_types.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
SCsub Unified GLES2 / GLES3 Batching 2020-10-16 10:34:47 +01:00