//FragmentVertex shader
var v_texCoord= var(0.0, 0.0,
0.0, 1.0,
1.0, 1.0,
1.0, 0.0
); //Could I init this in the first vertex processing?
uniformvarying sampler2Dvec2 s_texture;v_texCoord;
attribute vec4 vPosition;
void main()
{
gl_FragColorgl_Position = texture2D(s_texture,vPosition;" v_texCoord); //Why the second
parameter only accepts vec2? I am sending av_texCoord buffer from= Javav_texCoord;" Code //To fragment shader
}
Question: is possible put statically UVs in shader?
Performance:
Each blue region represents ONE texture rendering from a FRAME.
Maybe its a minimal and unnecessary optimization...
