godot/drivers/gles3/shaders
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
..
blend_shape.glsl Style: Enable clang-format on GLSL shaders 2018-08-27 07:34:14 +02: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
canvas.glsl GLES3 fix normal map flipping with nvidia workaround 2020-08-23 07:54:58 +01: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 Remove unused #if 0'ed code 2020-01-21 21:41:54 +01:00
screen_space_reflection.glsl Explicitly use floating point numbers in the our shaders 2019-02-24 23:35:10 +00: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 Improve SSAO performance and quality 2019-05-26 12:01:01 +02:00
subsurf_scattering.glsl Style: Enable clang-format on GLSL shaders 2018-08-27 07:34:14 +02:00
tonemap.glsl Removed clamping of the Linear tonemapping when KEEP_3D_LINEAR 2019-08-29 18:14:19 +02:00