diff options
| author | yum <yum.food.vr@gmail.com> | 2025-03-25 18:12:12 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-03-25 18:12:12 -0700 |
| commit | f46f3023bb716950db30b48c245c82ad2d6ad2a3 (patch) | |
| tree | 8b35e27b0113247ba0698e45e5c2faa4915fe4f3 /2ner.shader | |
| parent | 2d49d9db4712ae3cbd604ec7c9f8627e4f74bde6 (diff) | |
Begin sketching out tessellation feature
Diffstat (limited to '2ner.shader')
| -rw-r--r-- | 2ner.shader | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/2ner.shader b/2ner.shader index 9c38983..d6047e1 100644 --- a/2ner.shader +++ b/2ner.shader @@ -514,12 +514,20 @@ Shader "yum_food/2ner" _Shatter_Wave_Direction("Direction", Vector) = (0, 1, 0, 0) [HideInInspector] m_end_Shatter_Wave("Shatter wave", Float) = 0 - //ifex _Mirror_UVs_In_Mirror==0 + //ifex _Mirror_UVs_In_Mirror_Enabled==0 [HideInInspector] m_start_Mirror_UVs_In_Mirror("Mirror UVs in mirror", Float) = 0 [ThryToggle(_MIRROR_UVS_IN_MIRROR)] _Mirror_UVs_In_Mirror_Enabled("Enable", Float) = 0 [HideInInspector] m_end_Mirror_UVs_In_Mirror("Mirror UVs in mirror", Float) = 0 //endex + //ifex _Tessellation_Enabled==0 + [HideInInspector] m_start_Tessellation("Tessellation", Float) = 0 + [ThryToggle(_TESSELLATION)] _Tessellation_Enabled("Enable", Float) = 0 + _Tessellation_Edge_Factors("Edge factors", Vector) = (1, 1, 1, 1) + _Tessellation_Inside_Factor("Inside factor", Float) = 1 + [HideInInspector] m_end_Tessellation("Tessellation", Float) = 0 + //endex + //ifex _Vertex_Domain_Warping_Enabled==0 [HideInInspector] m_start_Vertex_Domain_Warping("Vertex domain warping", Float) = 0 [ThryToggle(_VERTEX_DOMAIN_WARPING)]_Vertex_Domain_Warping_Enabled("Enable", Float) = 0 @@ -977,6 +985,11 @@ Shader "yum_food/2ner" #pragma vertex vert #pragma fragment frag + //ifex _Tessellation_Enabled==0 + #pragma hull hull + #pragma domain domain + //endex + #define MASKED_STENCIL1_PASS #include "2ner.cginc" |
