Bloom_vs11.hlsl
资源名称:3dwind2.0.rar [点击查看]
上传用户:xhbjoy
上传日期:2014-10-07
资源大小:38068k
文件大小:0k
源码类别:
游戏引擎
开发平台:
Visual C++
- struct VS_OUTPUT {
- float4 Pos: POSITION;
- float2 texCoord: TEXCOORD0;
- };
- VS_OUTPUT main(float4 Pos: POSITION){
- VS_OUTPUT Out;
- // Clean up inaccuracies
- Pos.xy = sign(Pos.xy);
- Out.Pos = float4(Pos.xy, 0, 1);
- // Image-space
- Out.texCoord.x = 0.5 * (1 + Pos.x);
- Out.texCoord.y = 0.5 * (1 - Pos.y);
- return Out;
- }