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.

27 lines
398 B

  1. Shader "Hidden/EncodeViewNormalStereoHlpNode"
  2. {
  3. Properties
  4. {
  5. _A ( "_A", 2D ) = "white" {}
  6. }
  7. SubShader
  8. {
  9. Pass
  10. {
  11. CGPROGRAM
  12. #include "UnityCG.cginc"
  13. #pragma vertex vert_img
  14. #pragma fragment frag
  15. sampler2D _A;
  16. float4 frag ( v2f_img i ) : SV_Target
  17. {
  18. float3 a = tex2D ( _A, i.uv ).rgb;
  19. return float4( EncodeViewNormalStereo( a ),0,0);
  20. }
  21. ENDCG
  22. }
  23. }
  24. }