Blur1_vs.glsl
资源名称:3dwind2.0.rar [点击查看]
上传用户:xhbjoy
上传日期:2014-10-07
资源大小:38068k
文件大小:0k
源码类别:
游戏引擎
开发平台:
Visual C++
- varying vec2 texCoord[5];
- void main()
- {
- vec2 inPos = sign(gl_Vertex.xy);
- gl_Position = vec4(inPos.xy, 0.0, 1.0);
- texCoord[0] = (vec2(inPos.x, -inPos.y) + 1.0)/2.0;
- const float size = 0.01;
- texCoord[1] = texCoord[0] + vec2(0.0, 1.0)*size;
- texCoord[2] = texCoord[0] + vec2(0.0, 2.0)*size;
- texCoord[3] = texCoord[0] + vec2(0.0, -1.0)*size;
- texCoord[4] = texCoord[0] + vec2(0.0, -2.0)*size;
- }