How does "Table" control use shader effect?

Recently I did an experiment,that add a shader effect to "Table" control.But I failed.

So I want ask how to make it successful, and what I need to pay attention to?

The Fragment Code:

#ifdef GL_ES
precision mediump float;

uniform float iTime;
uniform sampler2D sampler2d;
varying vec2 vtex;

void main(void)
vec2 st = vec2(vtex);
gl_FragColor = texture2D(sampler2d, st) * st.y;



1 comment
  • Hi,


    What kind of effect are you trying to make and what problem are you having?  Have you gotten the shader set up and working with the sample but you're not sure what to do to get the effect you want?  Or are you having trouble getting your sample working?


Please sign in to leave a comment.

Didn't find what you were looking for?

New post