godot/drivers/gles2/shaders
lawnjelly ecd39094ed GLES2 2D fix normal mapping - batching and nvidia workaround
Normal mapping previously took no account of rotation or flips in any path except the TEXTURE_RECT (uniform draw) method. This passed flips to the shader in uniforms.

In order to pass flips and rotations to the shader in batching and nvidia workaround, a per vertex attribute is required rather than a uniform. This introduces LIGHT_ANGLE which encodes both the rotation of a quad (vertex) and the horizontal and vertical flip.

In order to optionally store light angles in batching, we switch to using a 'unit' sized array which can be reused for different FVF types, as there is no need for a separate array for each FVF, as it is a waste of memory.
2020-08-18 17:49:24 +01:00
..
blend_shape.glsl Style: Enable clang-format on GLSL shaders 2018-08-27 07:34:14 +02:00
canvas_shadow.glsl Implement DOF blur, Glow, and BCS in GLES2 2019-09-30 08:04:31 -07:00
canvas.glsl GLES2 2D fix normal mapping - batching and nvidia workaround 2020-08-18 17:49:24 +01: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 Fix array constructor for lightmaps 2020-01-15 17:41:46 -08: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_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
ssao.glsl Style: Enable clang-format on GLSL shaders 2018-08-27 07:34:14 +02:00
stdlib.glsl Implemented inverse shader function to GLES2 2019-08-22 08:22:49 +03:00
subsurf_scattering.glsl Style: Enable clang-format on GLSL shaders 2018-08-27 07:34:14 +02:00
tonemap.glsl Implement DOF blur, Glow, and BCS in GLES2 2019-09-30 08:04:31 -07:00