Blur1_vs11.hlsl
上传用户:xhbjoy
上传日期:2014-10-07
资源大小:38068k
文件大小:0k
源码类别:

游戏引擎

开发平台:

Visual C++

  1. struct VS_OUTPUT {
  2.    float4 Pos: POSITION;
  3.    float2 texCoord: TEXCOORD0;
  4. };
  5. VS_OUTPUT main(float4 Pos: POSITION){
  6.    VS_OUTPUT Out;
  7.    // Clean up inaccuracies
  8.    Pos.xy = sign(Pos.xy);
  9.    Out.Pos = float4(Pos.xy, 0, 1);
  10.    // Image-space
  11.    Out.texCoord.x = 0.5 * (1 + Pos.x);
  12.    Out.texCoord.y = 0.5 * (1 - Pos.y);
  13.    return Out;
  14. }