Simply declare the GLES version in the first line of the shader:
#version 300 es
GLES 3.0 must be available on your device for this work.
Some devices limit GPU usage to consume less power when not plugged in. Always check the performance with the soft keyboard hidden and the power cord off. A shader should make at least around 30 fps to not slow down the UI.
A live wallpaper should only consume battery when you see it. So it generally depends on how often and how long you look at it. With normal use, you shouldn't note a difference in battery consumption.
Unfortunately error information is disabled on some devices (e.g. Huawei Ideos X3, Asus Transformer). Error highlighting/reporting is not possible on these devices.
You need to set Shader Editor as live wallpaper first. To do this, go to (the system) Settings, Display, Wallpaper, Live Wallpapers and choose Shader Editor as your live wallpaper. As soon as Shader Wallpaper is your live wallpaper, you can change what shader is running within the app with those menu entries ("Set as wallpaper" and "Update wallpaper" if the current shader is the chosen wallpaper shader).
This is a system limitation. No app can open both cameras at the same time.
Most probably it's because time
is just a float of medium precision
(unfortunately the default for fragment shaders).
Either try to specify high precision (what may not be available on your
hardware):
#ifdef GL_FRAGMENT_PRECISION_HIGH
precision highp float;
#else
precision mediump float;
#endif
Or use the second
/subsecond
/ftime
uniforms instead.
See issue #10 for details.