majicmike / ShaderEditor

Android app to create GLSL shaders and use them as live wallpaper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shader Editor

Create and edit GLSL shaders on your Android phone or tablet and use them as live wallpaper.

Get it on Google Play

Shader Editor on fdroid.org

Features

  • Live preview in background or on an extra screen
  • Syntax highlighting
  • Error highlighting
  • Use any shader as live wallpaper
  • Exposure of sensors (accelerometer, gyroscope, magnetic field, light, pressure, proximity)
  • Exposure of battery level
  • Supports wallpaper offset
  • Supports multiple touches
  • Supports multiple render resolutions
  • Previous rendered frame in backbuffer texture
  • Import and use arbitrary textures
  • Create and use cube maps
  • Disables rendering when battery is low

FAQ

How many FPS should I get to set my shader as live wallpaper?

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.

How much battery will a live wallpaper take?

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.

What if errors are not highlighted?

Unfortunately error information is disabled on some devices (e.g. Huawei Ideos X3, Asus Transformer). Error highlighting/reporting is not possible on these devices.

time uniform loses accuracy / framerate drops over 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.

Where can I learn more about Shaders?

Basics

Advanced

About

Android app to create GLSL shaders and use them as live wallpaper

License:MIT License


Languages

Language:Java 98.0%Language:Shell 1.0%Language:GLSL 0.5%Language:Makefile 0.4%