You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
271 B

  1. Shader "Hidden/PiNode"
  2. {
  3. SubShader
  4. {
  5. Pass
  6. {
  7. CGPROGRAM
  8. #pragma vertex vert_img
  9. #pragma fragment frag
  10. #include "UnityCG.cginc"
  11. sampler2D _A;
  12. float4 frag(v2f_img i) : SV_Target
  13. {
  14. return tex2D( _A, i.uv ).r * UNITY_PI;
  15. }
  16. ENDCG
  17. }
  18. }
  19. }