tutorial8.frag
来自「GLSL tutorial with sourcecode」· FRAG 代码 · 共 11 行
FRAG
11 行
uniform sampler2D myTexture1;
uniform sampler2D myTexture2;
void main (void)
{
vec4 texval1 = texture2D(myTexture1, vec2(gl_TexCoord[0]));
vec4 texval2 = texture2D(myTexture2, vec2(gl_TexCoord[1]));
gl_FragColor = 0.5*(texval1 + texval2);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?