Add initial prototype.
This commit is contained in:
12
3-mid/opengl/assets/shader/textured.frag
Normal file
12
3-mid/opengl/assets/shader/textured.frag
Normal file
@@ -0,0 +1,12 @@
|
||||
#version 140
|
||||
|
||||
uniform sampler2D sTexture;
|
||||
|
||||
varying vec4 vColor;
|
||||
varying vec2 vCoords;
|
||||
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_FragColor = texture2D (sTexture, vCoords) * vColor; // Modulate light color with texture.
|
||||
}
|
||||
Reference in New Issue
Block a user