fixed4 frag (v2f i) : SV_Target

{

//旋转180

//i.uv = mul(i.uv, float2x2(-1, 0, 0, -1)) +float2(1, 1);

//x,y翻转

i.uv.xy = float2(i.uv.x, 1-i.uv.y);

fixed4 col = tex2D(_MainTex, i.uv);

// apply fog

//UNITY_APPLY_FOG(i.fogCoord, col);

return col;

}

shader计算图像翻转

 

相关文章:

  • 2021-11-28
  • 2022-12-23
  • 2021-10-21
  • 2021-12-24
  • 2022-01-06
  • 2022-01-28
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-02
  • 2021-10-13
  • 2021-12-06
  • 2021-05-08
  • 2021-12-08
相关资源
相似解决方案