yum/3ner
A toon shader for Unity's BIRP.
git clone https://git.yummers.dev/yum/3ner
3c03db9
master
1Shader "yum_food/fourier_water_compute" 2{ 3 // Certain parts of the Properties below are derived from Poiyomi's toon 4 // shader. The license is available in this repository at the top of 5 // poi.cginc. D. 6 Properties 7 { 8 [HideInInspector] shader_master_label("<color=#de719bff>2ner</color>", Float) = 0 9 [HideInInspector] shader_is_using_thry_editor("", Float) = 0 10 [HideInInspector] shader_presets("ThryPresetsExample", Float) = 0 11 [HideInInspector] shader_properties_label_file("ThryLabelExample", Float) = 0 12 13 [HideInInspector] m_start_Main("Main", Float) = 0 14 _Signal("Signal (input)", 2D) = "white" {} 15 [IntRange] _Stage("Stage", Range(-1, 30)) = 0 16 _Big_N("N", Int) = 2 17 _Size_M("Patch size (m)", Float) = 256 18 _Stride("Stride", Int) = 512 19 [IntRange] _Direction("Direction", Range(0, 1)) = 0 20 [HideInInspector] m_end_Main("Main", Float) = 0 21 } 22 23 SubShader { 24 Tags { "RenderType" = "Opaque" "Queue" = "Geometry" } 25 26 Pass { 27 Name "FORWARD" 28 Tags { "LightMode" = "ForwardBase" } 29 Cull Off 30 ZWrite Off 31 ZTest Always 32 Blend One Zero 33 34 CGPROGRAM 35 #pragma target 5.0 36 #pragma shader_feature_local _ _RADIX_4 _RADIX_8 37 #pragma shader_feature_local _FFT_SIZE_1 _FFT_SIZE_2 _FFT_SIZE_4 _FFT_SIZE_8 _FFT_SIZE_16 _FFT_SIZE_32 _FFT_SIZE_64 _FFT_SIZE_128 _FFT_SIZE_256 _FFT_SIZE_512 _FFT_SIZE_1024 38 #pragma shader_feature_local _TIME_EVOLVE 39 #pragma shader_feature_local _DERIVATIVE 40 #pragma shader_feature_local _DISPLACEMENT 41 #pragma shader_feature_local _DISPLACEMENT_DERIVATIVE 42 #pragma vertex CustomRenderTextureVertexShader 43 #pragma fragment frag 44 45 #include "fourier_water_compute.cginc" 46 ENDCG 47 } 48 } 49 CustomEditor "Thry.ShaderEditor" 50}