godot/drivers/gles3/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 update algorithm about paking float to vec4 to fix shadow shift and change rgba_shdow options 2019-07-28 11:43:01 +08:00
copy.glsl reduce complexity of irradiance map generation 2020-01-18 16:51:52 -08:00
cube_to_dp.glsl Style: Enable clang-format on GLSL shaders 2018-08-27 07:34:14 +02:00
cubemap_filter.glsl Merge pull request #35310 from akien-mga/gles3-irradiance-small-optimization 2020-01-19 18:55:51 +01:00
effect_blur.glsl fixed bug in mip map sigma 2019-04-12 17:48:38 -07:00
exposure.glsl Style: Enable clang-format on GLSL shaders 2018-08-27 07:34:14 +02:00
lens_distorted.glsl Moving lens distortion shader into drivers and adding GLES2 support 2018-10-02 17:14:43 +10: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 Multiply vertex lit DirectionalLights by albedo in GLES3 2021-02-18 20:56:45 -08:00
screen_space_reflection.glsl Merge pull request #38954 from puchik/ssr-far-clip 2020-10-18 20:48:44 +02:00
SCsub SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
ssao.glsl Improve SSAO performance and quality 2019-05-26 12:01:01 +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
subsurf_scattering.glsl Style: Enable clang-format on GLSL shaders 2018-08-27 07:34:14 +02:00
tonemap.glsl Properly apply auto exposure with FXAA in GLES3 2020-12-26 15:23:08 -08:00