初次提交
This commit is contained in:
7
第15章 真实光学环境的模拟/Sample15_2/assets/frag_tex_cube.sh
Normal file
7
第15章 真实光学环境的模拟/Sample15_2/assets/frag_tex_cube.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
precision mediump float;
|
||||
uniform samplerCube sTexture;//纹理内容数据
|
||||
varying vec3 vTextureCoord; //接收从顶点着色器过来的参数
|
||||
void main() {
|
||||
//将计算出的颜色给此片元
|
||||
gl_FragColor=textureCube(sTexture, vTextureCoord);
|
||||
}
|
||||
Reference in New Issue
Block a user