markusfisch / ShaderEditor

Android app to create GLSL shaders and use them as live wallpaper
https://play.google.com/store/apps/details?id=de.markusfisch.android.shadereditor
MIT License
924 stars 137 forks source link

Touch screen like mouse in computer? #167

Open salsa-project opened 1 year ago

salsa-project commented 1 year ago

Hi guys , thank to devs for this good android app. Im searching on how to implement touch screen (x, y) coords in my project , any idea please . I couldnt find an answer for that .

markusfisch commented 1 year ago

Hello, do you mean how to use the touch coordinates in a shader in Shader Editor? Then have a look the pointers uniform (Menu -> Add uniform/texture) and the Touch sample (Menu -> Load sample -> Touch).

Or did you mean how you would set coordinates like this for a shader in OpenGL? Then have a look a the source code.