virtualx-engine/drivers/gles3
karroffel 327fea741a using TIME in light shader enables uses_fragment_time
The GLES3 shader compiler performs certain checks to enable or disable
the usage of certain uniform variables (and with that the set-up of UBOs).

If the `TIME` variable gets used inside the `vertex` function then the
renderer knows that it has to insert that value into the UBO.
The same applies to the `fragment` function.

The `light` function gets executed inside the fragment shader for every
light source that is relevant to the current pixel. If the `TIME` variable
gets used in that function then it needs to be present in the fragment-UBO.
The check for this was missing, so if a shader uses `TIME` inside `light`
but not inside `fragment` then the uniform will not actually be set up.

(cherry picked from commit bb655856e2)
2018-02-21 22:10:28 +01:00
..
shaders Fix typos in code and docs with codespell 2018-01-18 22:01:42 +01:00
rasterizer_canvas_gles3.cpp Properly fix blend equations for both transparent and non transparent framebuffers. Closes #15047 2018-01-11 19:39:47 -03:00
rasterizer_canvas_gles3.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
rasterizer_gles3.cpp Fix stretch aspect keep mode 2018-01-10 10:49:26 +09:00
rasterizer_gles3.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
rasterizer_scene_gles3.cpp Remove a few debugging prints 2018-02-19 22:13:46 +01:00
rasterizer_scene_gles3.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
rasterizer_storage_gles3.cpp Fix typos in code and docs with codespell 2018-01-18 22:01:42 +01:00
rasterizer_storage_gles3.h Ensure depth reads go via alpha render list, fixes #14759 2018-01-06 17:38:39 -03:00
SCsub BuildSystem: generated files have .gen.extension 2017-06-25 07:55:01 +07:00
shader_compiler_gles3.cpp using TIME in light shader enables uses_fragment_time 2018-02-21 22:10:28 +01:00
shader_compiler_gles3.h using TIME in light shader enables uses_fragment_time 2018-02-21 22:10:28 +01:00
shader_gles3.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
shader_gles3.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00