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;
#endif
uniform float iTime;
uniform sampler2D sampler2d;
varying vec2 vtex;
void main(void)
{
vec2 st = vec2(vtex);
gl_FragColor = texture2D(sampler2d, st) * st.y;
}
0
Comments
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.