virtualx-engine/drivers/gles2/shaders
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
..
blend_shape.glsl Style: Enable clang-format on GLSL shaders 2018-08-27 07:34:14 +02:00
canvas.glsl Batching - use FINAL_MODULATE_ALIAS in shaders 2021-03-11 17:07:19 +00:00
canvas_shadow.glsl Implement DOF blur, Glow, and BCS in GLES2 2019-09-30 08:04:31 -07:00
copy.glsl fix gles2 broken panorama sky on oculus quest 2019-09-22 18:53:38 +02:00
cube_to_dp.glsl Implement DOF blur, Glow, and BCS in GLES2 2019-09-30 08:04:31 -07:00
cubemap_filter.glsl GLES2: Fix comments in previous commit that broke rendering (!) 2019-03-12 00:26:56 +01:00
effect_blur.glsl Implement DOF blur, Glow, and BCS in GLES2 2019-09-30 08:04:31 -07:00
exposure.glsl Style: Enable clang-format on GLSL shaders 2018-08-27 07:34:14 +02:00
lens_distorted.glsl Implement DOF blur, Glow, and BCS in GLES2 2019-09-30 08:04:31 -07:00
particles.glsl Style: Enable clang-format on GLSL shaders 2018-08-27 07:34:14 +02:00
resolve.glsl Style: Enable clang-format on GLSL shaders 2018-08-27 07:34:14 +02:00
scene.glsl Improve PCF13 shadow rendering in GLES2 by using a soft PCF filter 2021-02-22 13:36:15 +01:00
screen_space_reflection.glsl Style: Enable clang-format on GLSL shaders 2018-08-27 07:34:14 +02:00
SCsub SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
ssao.glsl Style: Enable clang-format on GLSL shaders 2018-08-27 07:34:14 +02:00
ssao_blur.glsl Style: Enable clang-format on GLSL shaders 2018-08-27 07:34:14 +02:00
ssao_minify.glsl Style: Enable clang-format on GLSL shaders 2018-08-27 07:34:14 +02:00
stdlib.glsl Fixed the inverse(mat3) polyfill for GLES2 2020-12-07 22:19:45 +01:00
subsurf_scattering.glsl Style: Enable clang-format on GLSL shaders 2018-08-27 07:34:14 +02:00
tonemap.glsl Add fast approximate antialiasing (FXAA) to Viewport 2020-10-20 14:54:52 +02:00