|
|
数组是这么定义的:
float3×3 _smooth_fil=float3×3(1/9.0,1/9.0,1/9.0,
1/9.0,1/9.0,1/9.0,
1/9.0,1/9.0,1/9.0);
在pixel shader中源程序是这样的:
sampler2D Texture0;
float2 texSize;
float4 ps_main( float2 texCoord : TEXCOORD0 ) : COLOR
{
float2 intXY=float2(texCoord.x*texSize.x,texCoord.y*texSize.y);
float3×3 _smooth_fil=float3×3(1/9.0,1/9.0,1/9.0,
1/9.0,1/9.0,1/9.0,
1/9.0,1/9.0,1/9.0);
//return clip_filter(_smooth_fil,Texture0,intXY,texSize);
return tex2D( Texture0, texCoord );
}
去掉这个数组就可以通过。不知道哪里错了,请指教。
|
|