Open ghost opened 3 years ago
Hm, sorry 😬 Does touching the default shader work? There should be a visual change around a touch.
Hm, sorry 😬 Does touching the default shader work? There should be a visual change around a touch.
This is with the visual indicator (in Android's programmer settings) enabled. Nothing is displayed.
The other two default shaders that also utilise touch (Game of Life and Cloudy Game of Life) also do not work.
That's strange 🤔
Does the touch
uniform work?
#ifdef GL_FRAGMENT_PRECISION_HIGH
precision highp float;
#else
precision mediump float;
#endif
uniform vec2 resolution;
uniform vec2 touch;
void main(void) {
float mx = max(resolution.x, resolution.y);
vec2 uv = gl_FragCoord.xy / mx;
vec3 color = max(color, smoothstep(
0.085,
0.08,
distance(uv, touch.xy / mx)));
gl_FragColor = vec4(color, 1.0);
}
No response to touch, even if I use only one finger.
Stock Samsung Galaxy M31s. Using the sample touch shader. Nothing is displayed at all, despite touching the screen.