virtualx-engine/drivers/gles2/shaders
azagaya b835868067 Create shadow_vec for altering shadow computation
In 2.1 and 3.0, light_vec could be modified for altering shadow_computations.
But it broke shadows when rotating light. shadow_vec would do the same, but without breaking
shadows in rotated lights if not used.

Add inverse light transformation to shadow vec, so it's not affected when rotating lights;

Added usage define for shadow vec.

For shadow vec working properly when rotating a light, it's needed to multiply it by light_matrix normalized. Added usage define in order to don't do that if shadow_vec not used.
2019-09-06 13:55:49 -03:00
..
blend_shape.glsl Style: Enable clang-format on GLSL shaders 2018-08-27 07:34:14 +02:00
canvas.glsl Create shadow_vec for altering shadow computation 2019-09-06 13:55:49 -03: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 Adding a new Camera Server implementation to Godot. 2019-06-15 21:30:32 +10:00
cube_to_dp.glsl GLES2: Define 'lowp' for OpenGL 2.1 2018-12-21 15:14:58 +01:00
cubemap_filter.glsl GLES2: Fix comments in previous commit that broke rendering (!) 2019-03-12 00:26:56 +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 GLES2: Define 'lowp' for OpenGL 2.1 2018-12-21 15:14:58 +01: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 Expose several GLES3 built-ins to GLES2 2019-07-31 19:00:10 +03:00
screen_space_reflection.glsl Style: Enable clang-format on GLSL shaders 2018-08-27 07:34:14 +02:00
SCsub Support lights and shadows in GLES2, fixes #21853 2018-12-20 10:10:30 -03: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 Expose several GLES3 built-ins to GLES2 2019-07-31 19:00:10 +03:00
subsurf_scattering.glsl Style: Enable clang-format on GLSL shaders 2018-08-27 07:34:14 +02:00
tonemap.glsl Style: Enable clang-format on GLSL shaders 2018-08-27 07:34:14 +02:00