初次提交
This commit is contained in:
10
第13章 顶点着色器的妙用/Sample13_4/assets/frag.sh
Normal file
10
第13章 顶点着色器的妙用/Sample13_4/assets/frag.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
precision mediump float;
|
||||
uniform sampler2D sTexture;//纹理内容数据
|
||||
//接收从顶点着色器过来的参数
|
||||
varying vec2 vTextureCoord;
|
||||
void main()
|
||||
{
|
||||
//给此片元颜色值
|
||||
gl_FragColor = texture2D(sTexture, vTextureCoord);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user