openGL work and other parts
This commit is contained in:
25
res/gl/fragmentTexSimple.glsl
Normal file
25
res/gl/fragmentTexSimple.glsl
Normal file
@@ -0,0 +1,25 @@
|
||||
#ifdef GL_ES
|
||||
// Set default precision to medium
|
||||
precision mediump int;
|
||||
precision mediump float;
|
||||
#endif
|
||||
|
||||
//uniform vec3 eyeWorldPos;
|
||||
//uniform vec3 lightWorldPos;
|
||||
|
||||
uniform sampler2D texDiffuse;
|
||||
|
||||
// interpolated values
|
||||
//varying vec3 v_WorldPos;
|
||||
//varying vec3 v_normal;
|
||||
varying vec2 v_texcoord;
|
||||
|
||||
void main() {
|
||||
|
||||
// fragment color
|
||||
vec4 ambient = texture2D(texDiffuse, v_texcoord);
|
||||
|
||||
// set
|
||||
gl_FragColor = ambient;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user