From 7c06ec91c01b829e35046c67f817ae0fb8213486 Mon Sep 17 00:00:00 2001 From: Richard Kopelow Date: Tue, 14 Mar 2017 00:54:34 -0400 Subject: [PATCH] Added Spherical Disintegration shader --- Shaders/Unity/SphericalDisintegration.PNG | Bin 0 -> 17669 bytes .../Unity/SphericalDisintegration/README.md | 3 + .../SphericalDisintegration/README.md.meta | 8 ++ .../SphericalDisintegration.cs | 20 ++++ .../SphericalDisintegration.cs.meta | 12 +++ .../SphericalDisintegration.mat | Bin 0 -> 5152 bytes .../SphericalDisintegration.mat.meta | 8 ++ .../SphericalDisintegration.shader | 93 ++++++++++++++++++ .../SphericalDisintegration.shader.meta | 9 ++ 9 files changed, 153 insertions(+) create mode 100644 Shaders/Unity/SphericalDisintegration.PNG create mode 100644 Shaders/Unity/SphericalDisintegration/README.md create mode 100644 Shaders/Unity/SphericalDisintegration/README.md.meta create mode 100644 Shaders/Unity/SphericalDisintegration/SphericalDisintegration.cs create mode 100644 Shaders/Unity/SphericalDisintegration/SphericalDisintegration.cs.meta create mode 100644 Shaders/Unity/SphericalDisintegration/SphericalDisintegration.mat create mode 100644 Shaders/Unity/SphericalDisintegration/SphericalDisintegration.mat.meta create mode 100644 Shaders/Unity/SphericalDisintegration/SphericalDisintegration.shader create mode 100644 Shaders/Unity/SphericalDisintegration/SphericalDisintegration.shader.meta diff --git a/Shaders/Unity/SphericalDisintegration.PNG b/Shaders/Unity/SphericalDisintegration.PNG new file mode 100644 index 0000000000000000000000000000000000000000..281ab78c42ff90ba2d07f428ecb9c34cbeb286ac GIT binary patch literal 17669 zcmch%k-2z`!*;s+A}kzk}bNe z6(JPG+)AFbcqETeQ6aL#?@XW1@B8}x1>e`Jl$mp1=Q`K9&UL-7<=mMLhio^ADT=LG zvu2asejBGXYt}())~p>75eA>Ib#u3Zf7V7i*^<{(_7W$+FB^ia4qB~QQ=KQi>?Z_% z7Y*C*5xHiKWV_(++OAV~j;&c^bH&ca%H^!j*vbLpO^1azwt{r zviarhx!4Qug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uo-T zY)ufC{s?Qd6;Gp8gUWmf)AtPl>dZow5B`Ec%_apKV1kaO0Xaz31}7{IPS}!vYHw}H z81k{|GRFRkVM{~5L29|__fxi(s=AZUo)E;zbHT9)Vk#AHGLtE#94-u5wK}ZhP!3*& zL$!B<(u0~r#yjQK>G#q)GD?15v(RhuuT$du8Ka;PHj^VM(Yj#o?1OozF&d7 zHe47G_XLONX|Q-#hZPxLps3fGMfaAIX(T{RDb-=x`Y`wquV?7SZ?JDt&dT&+;Jn*D z4lpm&XBZebiHAEl-FtV$l_77(V1GoY+4=z?=yKV<#d#t@J9WQ-o5ny|+sFOj^U=84 zKsA_c)j(8)667s5_IP0a<@<-S){TmQZv%URd#W)fYB{euzoZu2)B!G2yMFawFHulN z^~>xP#T{|gP)hYzm*-H5BBMcbdn)^*R%cd;mzMb)7;6R`%Q$jbtf&NwZ~|5;zt?i4 zIvr!v;QK@QpkGo1XH9Vu)v^SoK)Q#A;C`B%f_CFwwNe*QlE*_$;Bo>ZwPy->hPDB& z?yd!;1i;lK4~fby%&=A$3ZOXUXbE26(1f|i>$xHcgq4vu`~ z-TlGxe>&KEmL_h-ugLSqk%e9maELMKg4H&y6DtH6EU|o>p0%xl-_-<-Di@MU1$v%u z3XZ#-5nSRpicPDSy0DAf-ze(=lCt2<757X8w^-s(urd_9H{vHRSe)9U?lvcI9{Ff4 zrnU(3=P*-@Ky~wSA+jIA1AiVUtCq;Xig8ENs6oh RuP#|*M>%9uN%l?p{{TH9().material; + mat.SetVectorArray("_Orbs", new Vector4[] { GetComponent().position}); + mat.SetInt("_OrbsLength", 1); + } + + void Update() + { + mat.SetFloat("_Expansion", Time.time / 2f); + } +} diff --git a/Shaders/Unity/SphericalDisintegration/SphericalDisintegration.cs.meta b/Shaders/Unity/SphericalDisintegration/SphericalDisintegration.cs.meta new file mode 100644 index 0000000..2d380ea --- /dev/null +++ b/Shaders/Unity/SphericalDisintegration/SphericalDisintegration.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8698e5790ac6c2f48993f4364a01c3fa +timeCreated: 1489456771 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Shaders/Unity/SphericalDisintegration/SphericalDisintegration.mat b/Shaders/Unity/SphericalDisintegration/SphericalDisintegration.mat new file mode 100644 index 0000000000000000000000000000000000000000..f55faee97d819ec81681c5987cc5f20e0fbc24e2 GIT binary patch literal 5152 zcmeI0OKclO7{@<5iIb*K2(+}Nl$!Ueq_hy8Ax@JxO-S6Naas@;v$eQTDc>2y*l275p|o%gR?J$U2lzV@{@R<2*#e{pYt zX`0tFSmyQ|QN*WoGQT7KN96qO} z!3U(D2lyQLISMZO0G(pnH@RcJQ}YzD22F8Cyy$4GZ^V16WQuqDxl429=Lw#}pWFCI zk+e7bL>0I4a|~Q|)6Y9JSM_?0=ZNc0?r5kZ@>%CG_-;UM;MbYI&13i@Z<7ez%-dZs zmfXzSUT|*6=OL~m@&=uKfD!nhtjk9+->>DKRHTCa>{WP>pecY#8>1Sh}=GAw3e33i!@8hG=Ps_Z09`pM(A28y2K=VN(t_Q)n zAwS)Ddk8QBAENhol;rJU%`-BeU-2CNJfiuqaa}xTD&7&}x{ra&K4Rqaam|P58y+K{ z$ng{0(U7+82A2RKyE1-mio!_{-k7zci;cxnrG-Y*8Yj-ct($KC(25lOC0YN zo(*z;3b>2^&NFa4gNiGiKY0e7W58YZiO$nKJkfbZb5+M{JV!n!z$5r?*6~@*%{ub$ zrEI-*d|um|b$mf{vyLxnZr1T7=3CWq5?pq(jxTFIM93%Vh`ix<3k|T2ju<|}sS`T2Gz+`#tS zDQcAFZAUE5@nF>o>pYNl#ky4yK99lKy8>_z86n?l-tP2rB)H*LJF|-9#)feg^s(=x3mxf&U`|ct0yP>%2$d|LJpfV7sBH z`Buog6ZM~a3Ogc_@A9R5VX;_TTsg^e{NKiYI9bCUyEM~kG_lt(TEtsObk(r;D$R+| zvYq43SyAz}vB&#$Y+tZ~bFoTt_)qPVp5L&XZM5;8Qpz{%0DG}*Y-M}}%XWD?lw4gM zO&`XfS>X5_$1b06ydc;l%ogT3_$E+VDVLqrmX2()mwvBWK3~IXZ<05)@qRxFebh$n z+oT@8i}02)^r}@JQ4a6*ah`SVv^o2W_w|x_f2`N-@;O%o!H+*IPwkNFK{(^^29(EW z^1AtU(~_HA#bm7WwrdCVHLGH`0*Rv>zJHXGeCZ2EIazWDJ# zR=E`Aq#sHCVa*NSj7kNsBIJxnp0D#=41M9&!a5e?^OM{%8U5w*B)&T>+pf^ z0PKTj>z3;Z2d8mEo=e51D7PHTU*N5|gY7w-iZzRV`QO|`Ief1wojy|(Wgc*o^?3bN s-wxqrl*1NS+RS1%4U43%>WJ?%J@tq!u}<;x7Uwm&$F&ypk{0Fu0WwHkWB>pF literal 0 HcmV?d00001 diff --git a/Shaders/Unity/SphericalDisintegration/SphericalDisintegration.mat.meta b/Shaders/Unity/SphericalDisintegration/SphericalDisintegration.mat.meta new file mode 100644 index 0000000..1484755 --- /dev/null +++ b/Shaders/Unity/SphericalDisintegration/SphericalDisintegration.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d6688c7cdb1b2a349bb147f4c79d697f +timeCreated: 1489454472 +licenseType: Free +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Shaders/Unity/SphericalDisintegration/SphericalDisintegration.shader b/Shaders/Unity/SphericalDisintegration/SphericalDisintegration.shader new file mode 100644 index 0000000..a0255e6 --- /dev/null +++ b/Shaders/Unity/SphericalDisintegration/SphericalDisintegration.shader @@ -0,0 +1,93 @@ +Shader "Custom/SphericalDisintegration" { + Properties { + _Color ("Color", Color) = (1,1,1,1) + _MainTex ("Albedo (RGB)", 2D) = "white" {} + _Glossiness ("Smoothness", Range(0,1)) = 0.5 + _Metallic ("Metallic", Range(0,1)) = 0.0 + _DisintegrationColor("Disintegration Color", Color) = (1,0.5,0,1) + _FinishRadius ("Finish Radius", Float) = 1 + _DisintegrationThickness ("Disintegration Thickness", Float) = 0.1 + _Expansion ("Expansion", Range(0,1)) = 0 + } + SubShader { + Tags { "RenderType"="Opaque" } + LOD 200 + Cull Off + + CGPROGRAM + #include "UnityPBSLighting.cginc" + // Physically based Standard lighting model, and enable shadows on all light types + #pragma surface surf Custom fullforwardshadows + + // Use shader model 3.0 target, to get nicer looking lighting + #pragma target 3.0 + + sampler2D _MainTex; + + struct Input { + float2 uv_MainTex; + float3 worldPos; + float3 viewDir; + }; + + half _Glossiness; + half _Metallic; + fixed4 _Color; + fixed4 _DisintegrationColor; + float _FinishRadius; + uniform float _DisintegrationThickness; + uniform float _Expansion; + uniform int _OrbsLength; + uniform float4 _Orbs[10]; + + int disintegrating; + void surf(Input IN, inout SurfaceOutputStandard o) + { + disintegrating = 0; + if (_Expansion > 0) + { + for (int i = 0; i < _OrbsLength; i++) + { + float dist = distance(IN.worldPos, _Orbs[i].xyz); + float disintegrateDistance = _Expansion * _FinishRadius + sin((IN.worldPos.x+IN.worldPos.y+IN.worldPos.z)*30+_Time.y*5+o.Normal)*0.01; + if (dist < disintegrateDistance) + { + discard; + } + if (dist < disintegrateDistance + _DisintegrationThickness) + { + disintegrating = 1; + } + if (dot(o.Normal, IN.viewDir) < 0) + { + disintegrating = 1; + } + } + } + + // Albedo comes from a texture tinted by color + fixed4 c = tex2D(_MainTex, IN.uv_MainTex) * _Color; + o.Albedo = c.rgb; + // Metallic and smoothness come from slider variables + o.Metallic = _Metallic; + o.Smoothness = _Glossiness; + o.Alpha = c.a; + } + half4 LightingCustom(SurfaceOutputStandard s, half3 lightDir, UnityGI gi) + { + if (disintegrating == 1) + { + return _DisintegrationColor; + } + return LightingStandard(s, lightDir, gi); + } + + void LightingCustom_GI(SurfaceOutputStandard s, UnityGIInput data, inout UnityGI gi) + { + LightingStandard_GI(s, data, gi); + } + + ENDCG + } + FallBack "Diffuse" +} diff --git a/Shaders/Unity/SphericalDisintegration/SphericalDisintegration.shader.meta b/Shaders/Unity/SphericalDisintegration/SphericalDisintegration.shader.meta new file mode 100644 index 0000000..9309bfe --- /dev/null +++ b/Shaders/Unity/SphericalDisintegration/SphericalDisintegration.shader.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: abe9addfc2f299b4680ae051e73ce279 +timeCreated: 1489454366 +licenseType: Free +ShaderImporter: + defaultTextures: [] + userData: + assetBundleName: + assetBundleVariant: