Git Product home page Git Product logo

shadereditor's Introduction

Shader Editor

Travis-ci

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

Get it on Google Play

Features

  • Live preview in background or on an extra screen
  • Syntax highlighting
  • Error highlighting
  • Use any shader as live wallpaper
  • Exposure of sensors (camera, 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

shadereditor's People

Contributors

markusfisch avatar jfons avatar stuartpb avatar

Watchers

James Cloos avatar Meghal Agrawal avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.