9 lines
313 B
Bash
9 lines
313 B
Bash
precision mediump float;
|
|
varying vec2 vTextureCoord; //接收从顶点着色器过来的参数
|
|
uniform sampler2D sTexture;//纹理内容数据
|
|
void main()
|
|
{
|
|
//给此片元从纹理中采样出颜色值
|
|
vec4 cTemp=texture2D(sTexture, vTextureCoord);
|
|
gl_FragColor = cTemp;
|
|
} |