virtualx-engine/drivers
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
..
alsa Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
convex_decomp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
coreaudio Fix for a possible compile error under OS X 2018-02-19 22:24:57 +01:00
dummy Create and return LightmapCapture. 2018-02-21 21:49:16 +01:00
gl_context Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
gles3 using TIME in light shader enables uses_fragment_time 2018-02-21 22:10:28 +01:00
png Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
pulseaudio Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
rtaudio Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
unix [X11] Improving error detection in move_to_trash 2018-02-19 22:20:06 +01:00
wasapi Improved WASAPI driver so that it always uses the default audio device 2018-02-19 22:13:44 +01:00
windows fix buffer write performance on Windows and Unix 2018-02-19 22:13:45 +01:00
xaudio2 Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
zlib style: Fix PEP8 whitespace issues in Python files 2016-11-01 00:35:16 +01:00
register_driver_types.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
register_driver_types.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
SCsub Disable GLES builders and source from server compilation 2018-02-21 21:48:21 +01:00