HeavenStudio/Assets/Resources/Sprites/Games/Ringside/Sprite-Grayscale.shader
Rapandrasmus 9d1e08ac99
Ringside Added! (Btw ignore the conflicting changes) (#254)
* Started

* Started Wrestler

* Animation + input whiff

* Stuff

* a bunch of animations

* Added extra sprites to the wrestler object

* Question + more sprites

* Woah you go big guy

* Event redesign

* more animations

* pose animations (only one as of now)

* wrestler shadow fixed lol

* Pose for the fans code logic improvement

* Fixing pose for the fans

* smears and animation fixes

* Fixed anims

* Fixed more anims

* Camera zoom out for pose for the fans and camera flashes

* tiny anim fixes

* Pose for the fans visual details

* Added ease to the camera zoom

* more anims lolol

* Bopping

* audience pose anim changed a little

* Small visual details and toggle bop

* Small anim fix

* more anim changes!!!!!!!!!!

* Little small change

* z axis thing

* fixed the 3d zoomout *

they need to be lower doe

* wait i forgot this

* Maybe fixed anim for audience

* Added sweat

* crowd anim fix

* Newspaper Added

* Added miss reporter anim

* Some few miss sounds

* miss and pose anims and more!!!!

* Added most of the miss animations

* boing noise

* ringside anims done!!!!

* Implemented all the poses and also added a feature to edit the camera zoom ease

* add stretchable ringside cue

---------

Co-authored-by: ev <85412919+evdial@users.noreply.github.com>
Co-authored-by: minenice55 <43734252+minenice55@users.noreply.github.com>
Co-authored-by: minenice55 <star.elementa@gmail.com>
2023-02-03 21:50:42 -05:00

81 lines
2.2 KiB
Plaintext

// Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)'
Shader "Sprites-GrayScale"
{
Properties
{
[PerRendererData] _MainTex ("Sprite Texture", 2D) = "white" {}
_Color ("Tint", Color) = (1,1,1,1)
[MaterialToggle] PixelSnap ("Pixel snap", Float) = 0
_GrayscaleAmount ("Grayscale Amount", Range (0, 1)) = 1.0
}
SubShader
{
Tags
{
"Queue"="Transparent"
"IgnoreProjector"="True"
"RenderType"="Transparent"
"PreviewType"="Plane"
"CanUseSpriteAtlas"="True"
}
Cull Off
Lighting Off
ZWrite Off
Fog { Mode Off }
Blend SrcAlpha OneMinusSrcAlpha
Pass
{
CGPROGRAM
#pragma vertex vert
#pragma fragment frag
#pragma multi_compile DUMMY PIXELSNAP_ON
#include "UnityCG.cginc"
struct appdata_t
{
float4 vertex : POSITION;
float4 color : COLOR;
float2 texcoord : TEXCOORD0;
};
struct v2f
{
float4 vertex : SV_POSITION;
fixed4 color : COLOR;
half2 texcoord : TEXCOORD0;
};
fixed4 _Color;
v2f vert(appdata_t IN)
{
v2f OUT;
OUT.vertex = UnityObjectToClipPos(IN.vertex);
OUT.texcoord = IN.texcoord;
OUT.color = IN.color * _Color;
#ifdef PIXELSNAP_ON
OUT.vertex = UnityPixelSnap (OUT.vertex);
#endif
return OUT;
}
sampler2D _MainTex;
uniform float _GrayscaleAmount;
fixed4 frag(v2f IN) : COLOR
{
half4 texcol = tex2D (_MainTex, IN.texcoord);
texcol.rgb = lerp(texcol.rgb, dot(texcol.rgb, float3(0.3, 0.59, 0.11)), _GrayscaleAmount);
texcol = texcol * IN.color;
return texcol;
}
ENDCG
}
}
Fallback "Sprites/Default"
}