Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //by cale bradbury - netgrind.net
- //share and shit, don't remove these comments
- Shader "Unlit/Ping Pong" {
- Properties {
- _MainTex ("Albedo (RGB)", 2D) = "white" {}
- }
- Category{
- Blend SrcAlpha OneMinusSrcAlpha
- AlphaTest Greater 0
- Tags {"Queue"="Transparent"}
- SubShader {
- Pass{
- CGPROGRAM
- #include "UnityCG.cginc"
- #pragma vertex vert_img
- #pragma fragment frag
- sampler2D _MainTex;
- float4 _MainTex_ST;
- fixed4 frag (v2f_img i) : COLOR{
- return tex2D(_MainTex,abs(fmod(i.uv*_MainTex_ST.xy+_MainTex_ST.zw,float2(2.0,2.0))-float2(1.0,1.0)));
- }
- ENDCG
- }
- }
- }
- FallBack "Unlit"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement