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