worked on OpenGL ES
This commit is contained in:
16
res/gl/fragment1.glsl
Normal file
16
res/gl/fragment1.glsl
Normal file
@@ -0,0 +1,16 @@
|
||||
#ifdef GL_ES
|
||||
// Set default precision to medium
|
||||
precision mediump int;
|
||||
precision mediump float;
|
||||
#endif
|
||||
|
||||
uniform sampler2D texture;
|
||||
|
||||
varying vec2 v_texcoord;
|
||||
|
||||
void main()
|
||||
{
|
||||
// Set fragment color from texture
|
||||
gl_FragColor = texture2D(texture, v_texcoord);
|
||||
gl_FragColor = vec4(1,1,1,1);
|
||||
}
|
||||
Reference in New Issue
Block a user