yum-archive/SoggyShaders
Old Unity shaders.
git clone https://git.yummers.dev/yum-archive/SoggyShaders
7bb1910
master
1Shader "yum_food/grass" 2{ 3 Properties 4 { 5 _BaseColor("Base color", 2D) = "white" {} 6 //_Normal("Normal", 2D) = "bump" {} 7 //_Disable_Normal_Texture("Disable normal texture", float) = 1.0 8 _Metallic("Metallic", 2D) = "white" {} 9 _Roughness("Roughness", 2D) = "black" {} 10 11 _Wind_Speed("Wind Speed", 2D) = "black" {} 12 _Offset("Offset", Vector) = (0,0,0,0) 13 14 //_Cubemap("Cubemap", Cube) = "" {} 15 16 //_Height("Height", 2D) = "black" {} 17 //_Height_LOD("Height LOD", float) = 8.0 18 //_Height_Scale("Height scale", float) = 1.0 19 //_Height_Exponent("Height exponent", float) = 1.0 20 //_Height_Speed_X("Height speed (X axis)", float) = 0.0 21 //_Height_Speed_Y("Height speed (Y axis)", float) = 0.0 22 //_Height_AA_Sample_Scale("Height anti-alias UV scale", float) = 0.001 23 24 //_Height_Mask("Height mask", 2D) = "white" {} 25 //_Height_Mask_Exponent("Height mask exponent", float) = 1.0 26 27 //_Center_Out_Speed("Center out speed", float) = 0.0 28 //_Center_Out_Sharpness("Center out sharpness", float) = 4.0 29 //_Center_Out_Min_Radius("Center out min radius", float) = -1.0 30 //_Center_Out_Max_Radius("Center out max radius", float) = 2.7 31 } 32 SubShader 33 { 34 Pass { 35 Tags { 36 "RenderType"="Opaque" 37 "Queue"="AlphaTest+499" 38 "LightMode" = "ForwardBase" 39 } 40 Blend SrcAlpha OneMinusSrcAlpha 41 ZWrite On 42 ZTest LEqual 43 Cull Off 44 45 CGPROGRAM 46 #pragma target 5.0 47 48 #pragma multi_compile _ VERTEXLIGHT_ON 49 50 #pragma vertex vert 51 #pragma geometry geom 52 #pragma fragment frag 53 54 #define FORWARD_BASE_PASS 55 56 // Three anti-aliasing levels. 57 // 0: no anti-aliasing 58 // 1: sample 4 neighbors (diagonals) 59 // 2: sample 8 neighbors (diagonals + cartesian) 60 #define HEIGHT_AA_LEVEL 2 61 62 #include "grass_lighting.cginc" 63 ENDCG 64 } 65 Pass { 66 Tags { 67 "RenderType" = "Opaque" 68 "LightMode" = "ForwardAdd" 69 "Queue"="AlphaTest+499" 70 } 71 Blend One One 72 ZWrite On 73 ZTest LEqual 74 Cull Off 75 76 CGPROGRAM 77 #pragma target 5.0 78 79 #pragma multi_compile_fwdadd 80 81 #pragma vertex vert 82 #pragma geometry geom 83 #pragma fragment frag 84 85 #define HEIGHT_AA_LEVEL 2 86 87 #include "grass_lighting.cginc" 88 ENDCG 89 } 90 } 91} 92